diff --git a/src/adapters/prisma/index.ts b/src/adapters/prisma/index.ts index ee23288..94a870f 100644 --- a/src/adapters/prisma/index.ts +++ b/src/adapters/prisma/index.ts @@ -31,7 +31,7 @@ export default class PrismaAdapter models: M[] private _ctorModels: M[] private prismaJsonSchemaParser: PrismaJsonSchemaParser - private dmmf: Prisma.DMMF.Document + private dmmf: Prisma.DMMF constructor({ primaryKey = 'id', @@ -47,6 +47,7 @@ export default class PrismaAdapter getPrismaClientModels = () => { if (Prisma.dmmf) { + // @ts-ignore this.dmmf = Prisma.dmmf return Prisma.dmmf.datamodel.models.map((m) => m.name) as M[] }