·
26 commits
to main
since this release
Minor Changes
-
1e817d8: The
dmmfoption is now required when configuring the Prisma plugin. This is necessary because Prisma 7 no longer exposes DMMF data on the client internals.Migration
Import
getDatamodelfrom your generated Pothos types and pass it to the prisma config:import PrismaPlugin from "@pothos/plugin-prisma"; import { PrismaClient } from "./prisma/client"; import { getDatamodel } from "./prisma/generated"; const prisma = new PrismaClient(); const builder = new SchemaBuilder({ plugins: [PrismaPlugin], prisma: { client: prisma, dmmf: getDatamodel(), // Required in Prisma 7 }, });