Mutation request must contains all data required in list query. In other case list will not be updated #407
Labels
appsync-core
Related to core updates within AppSync SDK
to-be-reproduced
We need to reproduce this issue
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I have query like that
And mutation like that
CreateItemInput
have required onlytitle
other params are optional.When mutation is executed, list is not updated because of missing parameters
owner
,createdAt
andupdatedAt
.In console is warning with information about missing parameters.
Source code looks like that
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
It is a bug because in mutation response are all required parameters. List update works only with request and ignore data from response.
This functionality have weird behavior with offline > online client transition
Create item
function is called when website is offlineBut when client is online whole time, data from response are not used.
Problem can be fixed when mutation is called with all parameters. In this case item is added to list immediately.
What is the expected behavior?
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
Chrome 74
aws-appsync@1.7.2
aws-appsync-react@1.2.7
react-apollo@2.5.4
The text was updated successfully, but these errors were encountered: