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

Return the new value after an update #66

Merged
merged 2 commits into from Sep 28, 2016
Merged

Conversation

philwills
Copy link
Contributor

This an attempt to address #61 and I'd love to hear whether this is actually a solution or not.

My presumption is that it's much more likely that someone will be interested in the state after the update than before, so this changes the default behaviour to return that and uses the DynamoFormat to then transform that back into the case class associated with the table.

My belief is that this will address most use cases without significantly complicating the interface, but can be convinced that's not the case.

Philip Wills added 2 commits September 23, 2016 16:21
Never actually got published successfully and it's type inference doesn't work so nicely with returning the value from an update.
@philwills philwills merged commit b1989b7 into master Sep 28, 2016
@philwills philwills deleted the update-returns-new branch September 28, 2016 09:55
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 this pull request may close these issues.

None yet

2 participants