adsc#2319
adsc#2319
PPrisma
Created by adsc#2319 on 5/28/2024 in #help-and-questions
dmmf in prisma 5
I'm loading a prisma model metadata like this in prisma 4: let currentModel = Prisma.dmmf.datamodel.models.find(m => m.name === model) It seems Prisma.dmmf is undefined in prisma 5. I need it in filter string parsing, to find out whether a certain field is a list, so that I can nest it within "some" prisma filter construct. Any suggestions as to what I can use in prisma 5 to achieve the same?
2 replies