DynamoDB - Query with IN (boto3)

Viewed 16

I have a query in DynamoDB to retrieve items that match a given condition in my partition

response = {'input': table.query(KeyConditionExpression=Key('project').eq(project_data)
                & Key('name').eq(name), IndexName='my-index').get('Items')  }

I would like to retrieve data when the value of Project exists in a list, it is, something like setting the condition to Key('project').in(project_data)

How can i do this in dynamodb?

Thanks

0 Answers
Related