Using Node.js, I'm querying DynamoDB for objects using a secondary index:
TableName: "Products",
IndexName: 'MerchantAndDateIndex',
KeyConditionExpression: "#creator = :creatorId",
ExpressionAttributeNames:{
"#creator": "createdBy"
},
ExpressionAttributeValues: {
":creatorId": uuid
}
What I want to do is query the "Products" table with the "createdBy" hash key accepting several different possible strings, something like this:
ExpressionAttributeValues: {
":creatorId": ["multiple","valid","uuids","here"]
}
Where every element in my dynamic array is checked against the ID in the table when running a query.
Of course, this specific implementation returns a type mismatch, but I'm not sure how to do this correctly