-
Notifications
You must be signed in to change notification settings - Fork 816
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
Update mutations GraphQL for new created models not working. #3237
Comments
After rebuilding the entire Amplify project (from scratch), it worked again. |
Hello @daannijkamp it seems like you are using a sync enabled api. |
@SwaySway are you referring to @versioned? |
@daannijkamp _version
_deleted
_lastChangedAt Closing this issue as there is no action item, should you run into a similar situation again please comment below. |
I'm getting the same issue here, I'd really like not to have to recreate the whole project again, any idea what I can do to debug/fix. I've installed the latest Amplify Client and tried recreating the model (comment out, push, reinstate) but with no success. An initial create mutual works, but an update doesn't, same behaviour in the AWS AppSync console too. My model looks like this:
|
Same problem here. Any update? my version is: 4.16.1 |
Hi there. So i had the exact same issue and was able to solve it quite simple... sadly it was nowhere in the documentation of AWS. Let's take the ex
Results in no updates at all and just returns:
The key is to always provide the current
And the next time you'd call a mutation you would provide |
So I can confirm that I was updating my records and only the |
As an update to my question above I found this solution and it worked for me: #3796 (comment) Looks like it has to do with how the apps resolve conflicts. Removing that removed the |
Had the same problem. Solved it by runing "amplify update api" and Answering "NO" to the question => "enable conflict detection" |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
Update mutations GraphQL for new created models is not working.
Fields that already have a (String) value are not overwritten/updated
Amplify CLI Version
4.12.0
To Reproduce
schema.graphql
AppSync Queries console
Create mutation
Update mutation
Expected behavior
title field is updated to "new title", but it is still the old title now
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: