I\'m switching to the MongoDB Java driver version 3. I cannot figure out how to perform an update of a Document. For example, I want to change the \"age\" of an user:
You can try this
coll.findOneAndReplace(doc1, doc2);