#Finding model constraints in code

1 messages · Page 1 of 1 (latest)

near spear
#

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...

glossy vigilBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

near spear
#

found my answers ! thanks to kapa.ai
here my ugly code to determine which model depends on others