给定以下用于创建表的 dynamodb 模式:
"KeySchema": [
{
"AttributeName": "id",
"KeyType": "HASH"
},
{
"AttributeName": "name",
"KeyType": "RANGE"
}
],
和代码中的动态模式:
new dynamoose.Schema({
id: {
type: String,
},
name: {
type: String,
},
使用时看到ValidationException: The number of conditions on the keys is invalid
错误repository.get()