Skip to content

datastore.save() not returning correct representation of document in Mongo #3307

Answered by evanchooly
yoneoarai asked this question in Q&A
Discussion options

You must be logged in to vote

Correct. What is returned is the java object itself. it doesn't refresh its state from the database. If you want that exact state you can use the refresh() method on Datastore.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yoneoarai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants