Open mvivirito opened 3 years ago
You might use the DynamoDB Converter to marshall / unmarshall your data
Where would I call that function. It seems that when I actually use it in my code that I get an empty response. It was showing up at least a couple datapoints prior to using it.
@mvivirito Your data is an array type but unmarshall function requires an object so you should convert following like below
var shopList = shops.map((shop) => {
// Convert DynamoDB Json to Normal Json
return AWS.DynamoDB.Converter.unmarshall(shop)
})
I am having issues returning the results of the queries in unmarshalled format for example with projection expression: Querying by radius, looking 100km from Cambridge, UK. [ { geoJson: { S: '{"type":"POINT","coordinates":[-0.13,51.51]}' } } ]
I would like to return: Querying by radius, looking 100km from Cambridge, UK. [ { geoJson: {"type":"POINT","coordinates":[-0.13,51.51]} } } ]
How can I achieve this?