Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
tests.ts935 B
import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient /** * Regression test for #12003 * Order by self relation * TODO: enable mongodb tests when fix is merged */ testMatrix.setupTestSuite(() => { test('findFirst', async () => { await prisma.parent.findFirst({ orderBy: { resource: { dependsOn: { id: 'asc', }, }, }, }) }) test('findMany', async () => { await prisma.parent.findMany({ orderBy: { resource: { dependsOn: { id: 'asc', }, }, }, }) }) test('aggregate', async () => { await prisma.parent.aggregate({ _count: { _all: true, }, orderBy: { resource: { dependsOn: { id: 'asc', }, }, }, }) }) })

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