Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,231
  • Linux
  • Apple
count.ts871 B
import { faker } from '@faker-js/faker' import { setupTestSuite } from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient const id = faker.database.mongodbObjectId() setupTestSuite(() => { beforeAll(async () => { await prisma.comment.create({ data: { id, country: 'France', content: { set: { text: 'Hello World', upvotes: { vote: true, userId: '10', }, }, }, }, }) }) /** * Simple count */ test('count', async () => { const count = await prisma.comment.count({ where: { id }, orderBy: { content: { upvotes: { _count: 'desc', }, }, }, }) expect(count).toBe(1) }) })

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