snchmt
PPrisma
•Created by snchmt on 4/15/2024 in #help-and-questions
How to cascade delete properly in a self-relation with mongodb ?
It is written in the doc that we need to set NoAction on self-relation database but how are we supposed to do it ?
I tried getting all ids and using a deleteMany to delete parent and children together but I got a PrismaClientKnownRequestError.
23 replies