Hey all, how do I set OnDelete CASCADE in prisma 2 ?
r
Ryan
08/31/2020, 8:50 AM
@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
Ryan
08/31/2020, 9:50 AM
You can also check that in our roadmap as well and an implementation of how that can be done on the database end here.