Bernat Jufré
03/06/2022, 9:28 PMNurul
03/08/2022, 10:17 AMschema.prisma
, then you can use dmmf
property:
You can get all the metadata for your entire schema in the following manner:
const prisma = new PrismaClient()
// @ts-ignore
console.log(prisma._dmmf)
This will give you all the details for the models and relations along with the data types.
Please note that this is not an official API but an API that is used internally so this could be changed in future.janpio