I have a DynamoDB table with column named "timestamp" and am trying to query by date. I don't have control over changing the column name.
var params = {
TableName : 'REPORT_CARD',
KeyConditionExpression: "timestamp BETWEEN :startDate AND :endDate",
ExpressionAttributeValues: {
":startDate": ""+startDate,
":endDate": ""+endDate
}
}
I get the error:
ERROR: ValidationException: Invalid KeyConditionExpression: Attribute name is a reserved keyword; reserved keyword: timestamp
Is there a workaround for this besides renaming the "timestamp" column?