Hacker News new | ask | show | jobs
by helloiloveyou 1953 days 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.

1 comments

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