2 ms·
You could just setup the CASCADE in the DB and it will handle cascading deletes. They have docs on it... https://www.prisma.io/docs/guides/general-guides/datab
by quaffapint 6y ago
You could just setup the CASCADE in the DB and it will handle cascading deletes. They have docs on it...
https://www.prisma.io/docs/guides/general-guides/database-workflows/cascading-deletes/postgresql#3-create-two-tables-with-a-foreign-key-and-cascade-deletion-behavior https://www.prisma.io/docs/guides/general-guides/database-wo...