// @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