Map through JSON object in DynamoDB

I have stored my column as a JSON object in my DynamoDB table.

receiver:[{id: 'r1', name: 'a'},{id: 'r2', name: 'b'},{id: 'r3', name: 'c'},]

I want to get the item if r1 is a receiver.

I tried using the FilterExpression receiver[0].id = 'r1' and it did return the item. However, what if the index of r1 was not at 0? How would i be able to map through the object?



Read more here: https://stackoverflow.com/questions/68463081/map-through-json-object-in-dynamodb

Content Attribution

This content was originally published by Also James at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: