Closed yoitsro closed 3 years ago
Thanks for your contribution. Could you add some usage documentation to support your change.
Thanks
Hey @clarkie. Check that out. Let me know if you need anything else.
Ah ok, that makes sense. Would it be possible to add a test for this?
Thanks again for your contribution.
I am a bit hesitant to add this contextual information directly as a third parameter to the callback, for a few reasons:
I agree with @cdhowie that adding a third parameter to the callback function is suboptimal. This is inconsistent with the rest of the library's callback functions as well. Is there a different way to make this information available?
Also, couldn't you request consumed capacity for other database operations? Why just for update
?
When updating an item, there is the option to return the consumed capacity. http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-ReturnConsumedCapacity If it is returned, it is appended to the response under the
ConsumedCapacity
key.