Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
checkIfEmpty.ts359 B
// @ts-ignore this is just for type checks declare let prisma: import('./generated/prisma/client').PrismaClient export async function checkIfEmpty(...models: unknown[]) { const checkEmptyArr = await prisma.$transaction(models.map((model) => prisma[model].findMany())) checkEmptyArr.forEach((checkEmpty) => { expect(checkEmpty).toHaveLength(0) }) }

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