Error: appsync dynamodb not seeing all fields

Rafal Wilinski

Answered by Rafal Wilinski

What's Causing This Error

You would run into this error due to two main reasons.

  1. You have not specified the attribute that you require in the query. Since GraphQL returns only the data you request, it will not return additional data (avoiding over-fetching).
  2. Secondly, if you are querying an index, you may not have projected the attribute you require onto the index. Any attribute that is not projected will not be added to the GSI or LSI and, therefore, will not be returned even if you request it.

Solution: Here's How To Resolve It

To resolve the error:

  1. Ensure to request the required attributes in the GraphQL Query.
  2. Ensure that the index you are querying has the attribute you wish to query projected onto it.

Login to the AWS Console less. Use Dynobase.

First 7 days are on us. No strings attached.

Product Features

Member Portal
© 2024 Dynobase
Tired of AWS Console?
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.