Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
tests.ts1.16 kB
import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient testMatrix.setupTestSuite( () => { test('throws on invalid date (json)', async () => { await expect( prisma.user.findMany({ where: { date: new Date('I am not a date'), }, }), ).rejects.toMatchPrismaErrorInlineSnapshot(` " Invalid \`prisma.user.findMany()\` invocation in /client/tests/functional/issues/18970-invalid-date/tests.ts:0:0 XX () => { XX test('throws on invalid date (json)', async () => { XX await expect( → XX prisma.user.findMany({ where: { date: new Date("Invalid Date") ~~~~~~~~~~~~~~~~~~~~~~~~ } }) Invalid value for argument \`date\`: Provided Date object is invalid. Expected Date." `) }) }, { skipDataProxy: { runtimes: ['edge'], reason: 'Different error rendering for edge client', }, }, )

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