Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow return values on patch/update request #71

Closed
garretcharp opened this issue Jul 23, 2021 · 5 comments · Fixed by #73
Closed

Allow return values on patch/update request #71

garretcharp opened this issue Jul 23, 2021 · 5 comments · Fixed by #73

Comments

@garretcharp
Copy link

Currently, whenever doing a patch or an update the response is null even when I set the params to have ReturnValues set to "ALL_NEW". I would like for the library to handle return values and parse the items for me.

@tywalch
Copy link
Owner

tywalch commented Jul 23, 2021

This is something I've been wanting to add support for, I'll prioritize this 👍

@garretcharp
Copy link
Author

Another thing you might think about adding with this too is support for a parse method where you give it an item from Dynamo and it returns the parsed object using all the getters setup.

@tywalch
Copy link
Owner

tywalch commented Aug 8, 2021

Small update on this: Unless I find a critical issue, this will hopefully be merged tomorrow along with complex object support (map, list, set) 👍

@tywalch tywalch linked a pull request Aug 8, 2021 that will close this issue
@tywalch
Copy link
Owner

tywalch commented Aug 8, 2021

Syntax will use Query Option,response, with values: "default", "none", "all_old", "updated_old", "all_new", "updated_new"

Use like this:

.go({response: "all_new"});

.params({response: "all_new"});

@garretcharp
Copy link
Author

That great to hear thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants