Hey all, how do I set OnDelete CASCADE in prisma 2...
# orm-help
j
Hey all, how do I set OnDelete CASCADE in prisma 2 ?
r
@Jayanth currently it’s not possible to set it in the schema directly and I also think the default behaviour is onDelete CASCADE and there’s a request here for the same. As a workaround, you can use this tool made by @Ahmed to set cascade rules.
👍 2
You can also check that in our roadmap as well and an implementation of how that can be done on the database end here.
👍 1
😁 1