Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
findMany.ts980 B
import testMatrix from './_matrix' import { setup } from './_setup' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient let vars: Awaited<ReturnType<typeof setup>> testMatrix.setupTestSuite(() => { beforeAll(async () => { vars = await setup(prisma) }) test('findMany with cursor 1 unique (PK)', async () => { const data = await prisma.post.findMany({ cursor: { id: vars.postId2, }, }) expect(data.length).toBe(2) }) test('findMany with cursor 2 uniques (PK & non-PK)', async () => { const data = await prisma.post.findMany({ cursor: { id: vars.postId2, title: 'Hello World 2', }, }) expect(data.length).toBe(2) }) test('findMany with cursor 1 unique (non-PK)', async () => { const data = await prisma.post.findMany({ cursor: { title: 'Hello World 2', }, }) expect(data.length).toBe(2) }) })

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