I’m trying to create a Dictionary app API using AWS that can Load a dictionary entry from DynamoDB.
The problem is that when I try to GET a dictionary entry from the DB using LoadAsync, all of the correct data is returned except in one property, which is a list of objects called “definitions.” LoadAsync even returns the correct number of objects in the “definitions” list, but each object is empty.
I tried to build and run my API locally and then send it a GET request using Postman. I expected it to have all of the same data as I can see on the DynamoDB Console, but it is missing data in each of the objects in the “definitions” property.
Here’s a picture of some of the data from the AWS Console, notice the definitions objects have data:
DynamoDB Console
And here’s a picture of the result in Postman when I make a GET request, which calls LoadAsync (notice the empty objects in the list of “definitions”):
Postman
thewiseslug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.