dynalite icon indicating copy to clipboard operation
dynalite copied to clipboard

PutItem with ReturnValues set as 'ALL_OLD' doesn't work correctly

Open jeremydaly opened this issue 5 years ago • 2 comments

A PutItem call with 'ALL_OLD' specified as the ReturnValues should return a copy of the overwritten item.

jeremydaly avatar Apr 06 '20 15:04 jeremydaly

Hmmm, it certainly tries to do that: https://github.com/mhart/dynalite/blob/0641c3bf29b1171a67f49d58ca47ad676e145884/actions/putItem.js#L22-L23

What is it returning?

mhart avatar Apr 06 '20 16:04 mhart

I'm just getting an empty object.

jeremydaly avatar Apr 06 '20 19:04 jeremydaly