-
Notifications
You must be signed in to change notification settings - Fork 198
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
Unauthorized Error When Updating Child Object #3797
Comments
Hi @rohit3d2003 , Thank you for bringing this issue to our attention. We will attempt to reproduce and investigate it, and we'll keep you informed as soon as we have more details. |
This only happens when I try to update an existing object. If I create a new child object without parentChildId, everything works fine |
Here is a similar issue aws-amplify/amplify-category-api#2562. The issue is that the generated field
|
@5d - This fixed the issue |
Thank you - closing the issue. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
I am encountering an Unauthorized error when attempting to update an existing Child object in my iOS app using AWS Amplify with DataStore. Specifically, the error occurs when updating a Child object that already has parentChildId set to nil. Child object isn't associated to Parent object and hence parentChildId is nil in database. Below is the graphql schema
Code to Update Existing Child Object:
Steps To Reproduce
Expected behavior
The Child object should be updated successfully
Amplify Framework Version
2.36
Amplify Categories
API, DataStore
Dependency manager
Swift PM
Swift version
5.10
CLI version
12.12.4
Xcode version
15.4
Relevant log output
Is this a regression?
Yes
Regression additional context
No response
Platforms
iOS
OS Version
iOS 17.5
Device
iPhone 15
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: