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

Support returning updated item after save operation of DynamoDBMapper #1654

Closed
jungseoklee opened this issue Jun 28, 2018 · 4 comments
Closed
Labels
feature-request A feature should be added or improved.

Comments

@jungseoklee
Copy link

There is a case where an item appearing after save operation is needed. In other words, a result of updateItem request setting ReturnValue.ALL_NEW is required in some context.

Since DynamoDBMapper does not support the above, we should load an item again for further save operations (please correct me if I am wrong here). A low-level client would be preferred unless the additional load operation is negligible.

Thus, I am wondering if DynamoDBMapper supports the following:

public <T> T save(T object);

I tried to search the same request or similar ones in Refactor: Dynamo DB Mapper, but I could not find any.

Thanks in advance!

@spfink spfink added the feature-request A feature should be added or improved. label Jun 28, 2018
@ankurgupta4891
Copy link

ankurgupta4891 commented Jul 30, 2019

Is there any plan to implement this feature or any workaround to achieve it?

@ajak6
Copy link

ajak6 commented Aug 14, 2019

This should be implemented soon as the underlying API already supports it.

@debora-ito
Copy link
Member

@jungseoklee @ankurgupta4891 @ajak6

The SDK team has reviewed the feature request list for V1 and decided not to implement this one, as they're concentrating efforts on V2 new features. It's still being considered for the DynamoDB Mapper refactor in V2, I added it to the refactor tracking issue. I'll go ahead and close this.

Please feel free to comment on the V2 issue with your use case, and reach out if you have further questions.

@imjuoy
Copy link

imjuoy commented Nov 3, 2020

Do we have any timeline on this? This would really help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

6 participants