stevearc / flywheel

Object mapper for Amazon's DynamoDB
MIT License
128 stars 25 forks source link

can save return the items new values? #61

Closed BrandonBraner closed 7 years ago

BrandonBraner commented 7 years ago

By default, I believe DynamoDB returns the updates item for free. Is it possible to get the save method on a Model to return the saved items?

Maybe it already does, I haven't dug through the code too much yet.

stevearc commented 7 years ago

When using the sync() method flywheel will perform an UpdateItem and specify returns=ALL_NEW. It then updates the models with the returned values.