Unexpected Cascade Deletion in 1-to-1 Relationships with AWS Amplify #1084
Labels
cms
An issue identified as a cms bug/feature
pending-response
An issue is pending response from the issue requestor
pending-triage
An issue that is pending triage
Before opening, please confirm:
App Id
d3gamlam9hvbcr
Region
ap-southeast-1
Environment name
staging
Figma File Version (if applicable)
No response
Amplify CLI Version
12.10.0
If applicable, what version of Node.js are you using?
v18.0.0
What operating system are you using?
No response
Browser type?
No response
Describe the bug
Brief Description
Issue: I am experiencing an issue where the content of Model B is being deleted upon the deletion of a related Model A in a 1-to-1 relationship using AWS Amplify. This happens despite the absence of an explicit configuration for cascade deletion.
Expected Behavior: The anticipated behavior is that the deletion of an instance of Model A should not impact the data of the related instance in Model B unless a cascade delete or similar functionality is explicitly set up.
Steps to Reproduce
Environment Setup:
AWS Amplify version: 12.10.0
Schema:
Steps take:
Observed Result:
The associated content in ModelB table was also deleted.
Expected behavior
Content in ModelB table should not be deleted.
Reproduction steps
Project Identifier
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: