I am using MongoDB's Java Async Driver version 3.6, I don't see a findAndModify
implemented as part of MongoCollection
Class (am I mistaken?), the closest thing is findOneAndUpdate
can someone confirm that this operation will be performed atomically?
I understand how concurrent updates happen. The question is very specific are atomic ( read+write) guarantees atomic for the findOneAndUpdate api or not. It is not the same as asking how to use findAndmodify.