I'm trying to run a query on a dynamoDB table with the key condition as such
KeyConditions: {
userID: {
ComparisonOperator: 'GE',
AttributeValueList: [{N: '0'}]
}
}
When I run this query with the ComparisonOperator as 'EQ' no problems occur. However when it's 'GE' I get an error stating that the query key condition is not supported.
Note that userID is a hash key
From the Dynamo DB Query Documentation:
You must provide a hash key to query Dynamo DB. You could accomplish what you're trying to do with a
Scan
operation or with multipleQuery
operations, but there's no way to specify a condition other than equals for a hash key in DynamoDB.