-
Notifications
You must be signed in to change notification settings - Fork 73
How to set on delete cascade in .graphql file #2277
Comments
I think we do not enable cascade deletes as form of precaution, but I get that this is inconvenient to delete all comments from end user app to delete post Anyone can alter cascade rules on FK but that is like a lot of work if you have large db and on the other hand I do not want to have issue ala We need new annotations/ability probably so this is feature request IMHO |
Actually I cannot replicate this. I see we do not put any so constraints by default. More info needed |
Flow to reproduce this issue
Output:
2.create a comment with noteId
output:
3.Now delete the note record
output:
I am using postgres - 11.10 , node - v10.19.0 and created graphql project using "npm init graphback" command. |
I'm using postgres 11.10
My model is
Query :
output:
pls help me to resolve this
The text was updated successfully, but these errors were encountered: