4 ms·
Amazing!! The idea to generate an API when compiling is very good. The only thing that is holding me back is that as far as I understand Prisma doesn't support
by helloiloveyou 6y ago
Amazing!! The idea to generate an API when compiling is very good.
The only thing that is holding me back is that as far as I understand Prisma doesn't support cascading deletes.
Meaning that if I have to delete a user, then I have to manually delete all his projects, comments, posts, etc... which is not nice.
- quaffapint 6y agoYou 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...