Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
tests.ts918 B
import { expectTypeOf } from 'expect-type' import testMatrix from './_matrix' // @ts-ignore import type { Prisma, PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient // https://github.com/prisma/prisma/issues/9007 testMatrix.setupTestSuite( () => { test('should throw an error if using contains filter on uuid type', async () => { await prisma.user.create({ data: {} }) await expect(() => prisma.user.findMany({ where: { // @ts-expect-error uuid: { contains: 'foo-bar' }, }, }), ).rejects.toThrow() }) test('should not generate the contains field on the where type', () => { expectTypeOf<Prisma.UuidFilter>().not.toHaveProperty('contains') }) }, { optOut: { from: ['mongodb', 'sqlserver', 'mysql', 'sqlite'], reason: '@db.Uuid not supported here', }, }, )

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