dynamodb icon indicating copy to clipboard operation
dynamodb copied to clipboard

destroy method, {ReturnValues: true} option is wrong

Open madhavkaneriya opened this issue 6 years ago • 0 comments

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);

madhavkaneriya avatar Jun 26 '18 09:06 madhavkaneriya