当我将{ReturnValues:'ALL_NEW'}作为参数执行.updateAsync()时,会收到以下错误:
我正在使用https://github.com/andrewoh531/dynogels-promisified程序包,但也引用了https://github.com/clarkie/dynogels。
/dynogels/node_modules/aws-sdk/lib/request.js:31
throw err;
^
TypeError: callback is not a function
at self.sendRequest (/dynogels/lib/table.js:362:14)
at Response.driver.(anonymous function).call (/dynogels/lib/table.js:72:14)
at Request. (/dynogels/node_modules/aws-sdk/lib/request.js:364:18)
at Request.callListeners (/dynogels/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/dynogels/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/dynogels/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition /dynogels/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/dynogels/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /dynogels/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request. (/dynogels/node_modules/aws-sdk/lib/request.js:38:9)
at Request. /dynogels/node_modules/aws-sdk/lib/request.js:685:12)
at Request.callListeners /dynogels/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
at Request.emit (/dynogels/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit /dynogels/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/dynogels/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/dynogels/node_modules/aws-sdk/lib/state_machine.js:14:12)
我想使用{ReturnValues:'ALL_NEW'} https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#API_UpdateItem_RequestSyntax