Kishore Kumar Korada
Kishore Kumar Korada

Reputation: 1264

Can't I compare two different attributes in DynamoDB?

I'm new to Dynamo Db. And my Application says I need to write a program in which two attributes must be compared by their date values. I used GSI for this but what I found was, using GSI I can query all the attributes but separately. But I have to compare two different attributes by their date values so that I can move forward in my application for further. Thank you :)

Upvotes: 1

Views: 2792

Answers (1)

Chen Harel
Chen Harel

Reputation: 10072

You can not compare two attributes. DynamoDB conditions are bound to an attribute. You will have to write this condition in application level

Upvotes: 4

Related Questions