1

I have a DynamoDB table where one of the fields is an array of structures, each structure has several fields, let's say name and phone number. I want to make a (python, but it does not really matter) scan query for entries where one of the array entry's fields is the name that I need. Is that possible ? It is similar to the question

dynamodb - scan items by value inside array

but in my case condition has to be on one of the fields of the structure:

FilterExpression: "contains(#user, :v)",
ExpressionAttributeNames: { "#users": "user" }, 
ExpressionAttributeValues: { ":v": "John" }

Thanks.

3
  • Its the same, one of the suggested solutions(by @Arkar Aung) queries by single attribute. Commented Jun 3, 2016 at 18:27
  • For some reason I do not see the answer you mention. Commented Jun 3, 2016 at 19:56
  • my bad, check the following link stackoverflow.com/questions/24180853/… Commented Jun 3, 2016 at 20:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.