I have an array of usernames and I want to retrieve from a DynamoDB table all the items that contains usernames that exist in the array.
For Example: if my array is:
["Foo","Bar"]
and my table is:
username | attribute1 | attribute2
Foo | Value 1 | Value 2
Min | value1 | value2
Bar | value 1 | value 2
Then i want to get the first item and the last item.
I read the documentation for the scan operation but it doesn't seem to support this type of request.
Is what I'm asking for possible or am i going to have to iterate over my usernames array and retrieve items for each of them separately?