P
Prisma7mo ago
Nonot

Finding model constraints in code

Hello, I'm looking for a way to find the foreign keys of a model in the Prisma client. Not by typing but in JS. I can't find anything, even after digging into the engine...
2 Replies
Nonot
NonotOP7mo ago
found my answers ! thanks to kapa.ai here my ugly code to determine which model depends on others
Nonot
NonotOP7mo ago

Did you find this page helpful?