-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL API Cascade Deletion #3024
Comments
Hi @dan-codes1 Thank you for reaching us. Could you please clarify on what you mean by delete |
@royjit for example, let us say we have If I call This is what I mean. I expect that if a |
Cascade delete is supported only in Datastore and not in API GraphQL, you have to delete each item individually. |
Noted. Can this be made a feature request? @royjit |
Marking this as a feature request, will update here when we have more info to share. |
This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you! |
@royjit just realized this is already also a feature request in the category-api repo: aws-amplify/amplify-category-api#273 |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Hi, I'd like to clarify something. I noticed that when I delete the source model of relational data using GraphQL, its relationships still stay in the database. Is this normal behaviour? I'd expect that if a model is deleted (especially the source model), all its other relationships should get deleted as well and not be queried.
I'm currently having to delete each of it's relational data at the moment. I just thought to clarify / raise this.
Steps To Reproduce
Expected behavior
To delete the data and all its relations automatically.
Amplify Framework Version
2.8.0
Amplify Categories
API
Dependency manager
Swift PM
Swift version
5
CLI version
11.1.1
Xcode version
14
Relevant log output
Is this a regression?
Yes
Regression additional context
No response
Device
iPhone 14
iOS Version
15
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: