P
Prisma8mo ago
Upsided

how to make onDelete: SetNull only work for one field

I have a relation which has 2 fields, one being optional and one is a required field, how do I make my schema so that when the referenced model is deleted it only sets the optional field to null?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server