1
我执行使用JavaScript以下dynamoDB查询:dynamoDB查询与HashKeyValue和RangeKeyCondition不工作的JavaScript
dynamoDB.query({
"TableName" :"table_name",
"IndexName": "Approval-Date-index",
"HashKeyValue": {"Approval": {"AttributeValueList": [{"S": 'Approved'}],"ComparisonOperator": "EQ"}},
"RangeKeyCondition" : {"Date" : {"AttributeValueList": [{"S": "0"}]}},
// "ScanIndexForward" : true,
"AttributesToGet":["Id","Url","userName","userPicture","Title","Date","Type","Description"]
},
function(error, result)
{
console.log(result);
console.log(error);
});
我收到以下错误:
ValidationException:1 validation error detected: Value null at 'rangeKeyCondition.comparisonOperator' failed to satisfy constraint: Member must not be null