Nathaniel Babalola
11/18/2021, 10:04 PMimport { PrismaClient } from '@prisma/client';
import { DMMFClass } from '@prisma/client/runtime';
const prisma = new PrismaClient();
const dmmf = ((prisma as any)._dmmf as DMMFClass);
Wanjas Bely
11/19/2021, 4:27 AMimport { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
const dmmf = prisma._dmmf;
Nathaniel Babalola
11/19/2021, 10:42 AMRyan
11/22/2021, 5:14 AM_dmmf
is a private field, so you need to use // @ts-ignore
to access the field.