AWS.DynamoDB.DocumentClient is not providing data on put


I am using the AWS.DynamoDB.DocumentClient, with Dynamodb local (port 8080). When I perform a put, the data variable in the callback is an empty object. Have I missed something?

There is no error, and the item is being inserted\updated – however the data variable is an empty object. Shouldn’t this contain values?



You aren’t asking for any values to come back, so why do you expect there to be any values coming back? You’ll need to set the appropriate parameters ReturnConsumedCapacity and/or ReturnItemCollectionMetrics and/or ReturnValues if you are wanting any of that to come back in the response.

Leave a Reply