dynamodb
dynamodb copied to clipboard
destroy method, {ReturnValues: true} option is wrong
I tried destroying an item with {ReturnValues: true} option, it throw an error saying "Return values set to invalid value",
Devices.destroy(1122, {ReturnValues: true} , callback);
Then I changed it to {ReturnValues: 'ALL_OLD'}, it returned the item which got destroyed.
Devices.destroy(1122, {ReturnValues: 'ALL_OLD'} , callback);