I'm new with NoSQL Databases and am stuck with a problem. I just want to get keys from a table in DynamoDB that contains a specific value. I know that for key equals I can use:
response = table.query(
KeyConditionExpression=Key('year').eq(1992)
)
But I can't use:
response = table.query(
KeyConditionExpression=Key('year').contain('1992')
)
The error is:
Key object has no attribute contain.