awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
919 stars 266 forks source link

Collection Responses with id not working as expected #627

Open kuda1992 opened 3 years ago

kuda1992 commented 3 years ago

Note: If your issue/feature-request/question is regarding the AWS AppSync service, please log it in the official AWS AppSync forum

Do you want to request a feature or report a bug? Bug

What is the current behavior? When quering an api collection with an id field. If the id fields are the same the whole collection has the same properties.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Below are the steps to reproduce it.

query MyQuery($id: String = "") { queryRightToWorksById(id: $id) { items { attachments createdAt id description expiryDate modifiedAt notes companyId rightToWorkId status userId type } nextToken } }

The response I get back from the network tab.

Screenshot 2021-03-16 at 09 42 19

The passed result

Screenshot 2021-03-16 at 09 44 13

What is the expected behavior? I expect the result to be the same as the result from the network tab. Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions? I am using angular 10. This is the first time coming across this bug.