Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
tests.ts1.09 kB
import { faker } from '@faker-js/faker' import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient const email = faker.internet.email() testMatrix.setupTestSuite( () => { beforeEach(async () => { await prisma.user.deleteMany() await prisma.user.create({ data: { email } }) }) test('push with single element', async () => { const result = await prisma.user.update({ where: { email }, data: { jsons: { push: 1, }, }, }) expect(result.jsons).toEqual([1]) }) test('push with array value', async () => { const result = await prisma.user.update({ where: { email }, data: { jsons: { push: [1, 2], }, }, }) expect(result.jsons).toEqual([[1, 2]]) }) }, { optOut: { from: ['sqlite', 'mysql', 'mongodb', 'cockroachdb', 'sqlserver'], reason: 'json lists are supported only on postgresql', }, }, )

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