AppSync query does not work, but the record is added to DynamoDB.
See original GitHub issueCreated the following schema:
type Profile
@model
@auth(
rules: [
{ allow: owner, ownerField: "owner", operations: [create, update, delete] }
{ allow: groups, groups: ["admin"] }
]
) {
id: ID!
firstName: String!
lastName: String!
email: String!
avatar: S3Object!
owner: String
}
type S3Object {
bucket: String!
region: String!
key: String!
}
Caused a mutation:
await API.graphql(graphqlOperation(createProfile, { input: values }))
link
✅Successful answer
After I make a query
await API.graphql(graphqlOperation(listProfiles))
❌ An empty array is returned when requested in the application, as well as in the AppSync console


But there is a record in the DynamoDB database itself.

What is the problem?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Troubleshooting and Common Mistakes - AWS AppSync
This section discusses some common errors and how to troubleshoot them. Incorrect DynamoDB Key Mapping. If your GraphQL operation returns the following ...
Read more >Data live in DynamoDB however AppSync list query doesn't ...
Describe the bug I have an AWS Amplify app in which I add a GraghQL backend and create the model like this: type...
Read more >AWS AppSync not returning all the records from DynamoDB
The reason I say this: Let's suppose you are running the query with a filter, and you are not getting any results, but...
Read more >How to use DynamoDB with AppSync
How to store, retrieve, and query items in a DynamoDB table with an AppSync resolver ... AppSync natively supports reading and writing data...
Read more >AWS AppSync Subscriptions with DynamoDB Streams ...
With AWS AppSync a GraphQL Subscription always has to be triggered by a GraphQL Mutation. But there are use cases in which you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@djsmedes
yes
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
*-help
channels for those types of questions.