pothos-prisma-generator v1.3.11 automatically generates a complete GraphQL schema (queries, mutations, counts) from your Prisma schema at runtime. No code generation output — the schema is built internally using Pothos plugins. It supports standard CRUD operations, authorization via ScopeAuthPlugin, and dynamic value replacement (e.g., injecting user IDs). Requires @pothos/core, @pothos/plugin-prisma, @pothos/plugin-prisma-utils, and optionally @pothos/plugin-scope-auth. Active development on GitHub.
npm install pothos-prisma-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup of Pothos builder with the Prisma generator plugin, auto-generating GraphQL schema from Prisma model.
Add "resolutions": { "async-function": "0.1.0" } to package.json.Remove PrismaTypes from the generic parameter of SchemaBuilder.
Install graphql-scalars or set autoScalers: false in plugin options.
Import prismaDmmf from './generated/prisma-dmmf.js' and pass to dmmf instead of Prisma.dmmf.
Ensure prisma.dmmf is passed correctly: { prisma: { client: prisma, dmmf: Prisma.dmmf } }Install graphql-scalars: npm install graphql-scalars
Pin async-function to 0.1.0 in package.json resolutions.