Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
mergeBy.test.ts839 B
import { mergeBy } from '../runtime/mergeBy' test('basic mergeBy', () => { const arr1 = [ { name: 'db', url: 'file:old-url.db', }, ] const arr2 = [ { name: 'db', url: 'file:new-url.db', }, ] expect(mergeBy(arr1, arr2, (a) => a.name)).toMatchInlineSnapshot(` [ { "name": "db", "url": "file:new-url.db", }, ] `) }) test('mergeBy should merge last item', () => { const arr1 = [ { name: 'db', url: 'file:old-url.db', }, ] const arr2 = [ { name: 'db', url: 'file:new-url.db', }, { name: 'db', url: 'file:new-url2.db', }, ] expect(mergeBy(arr1, arr2, (a) => a.name)).toMatchInlineSnapshot(` [ { "name": "db", "url": "file:new-url2.db", }, ] `) })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server