I am trying to query a Table with a Hash and Range key for all Items whose Range match a value in an array. I'm using the aws-sdk npm module. When I run the below scan I get a ValidationException.
client.scan({
TableName: "MyTable",
ScanFilter: {
HashID: {
AttributeValueList: [ { "S": "hash" } ],
ComparisonOperator: "EQ",
},
RangeID: {
AttributeValueList: [ {"SS": ["a", "b"]} ],
ComparisonOperator: "IN"
},
},
}
Error response:
{ [ValidationException: The attempted filter operation is not supported for the provided type]
message: 'The attempted filter operation is not supported for the provided type',
code: 'ValidationException',
name: 'ValidationException',
statusCode: 400,
retryable: false }
How do I do this query?