#✅ - Cascade Delete

5 messages · Page 1 of 1 (latest)

violet granite
#

Does anyone have a good workaround for executing a cascade delete on related resources in dynamoDB using amplify gen2?

high pagoda
#

Like if you delete an organization that has users, it would delete all the users?

tough ingot
#

Hi @violet granite , it's not exactly a trivial thing to do with DynamoDB but perhaps Gen 2 provides more flexibility on implementing this with custom queries/mutations and resolvers.

This is an open issue and feature request, so I would recommend checking out what others have tried in this issue:

https://github.com/aws-amplify/amplify-category-api/issues/273

GitHub

Which Category is your question related to? API, database I have one @model type that utilizing several many-to-many connections via a joining model as, for instance, described here. Now, when I de...

fickle marshBOT
#

✅ - Cascade Delete

#

Answer selected!


This is an open issue and feature request, so I would recommend checking out what others have tried in this issue:

https://github.com/aws-amplify/amplify-category-api/issues/273```
Kudos to @tough ingot!
#1270855043905491020 message