Home:ALL Converter>MongoDB - findAndModify with WriteConcern

MongoDB - findAndModify with WriteConcern

Ask Time:2014-05-05T22:33:28         Author:joao cenoura

Json Formatter

Is it possible to specify a WriteConcern in findAndModify operation? If not, what is the default WriteConcern?

BTW, I'm using the java driver.

Author:joao cenoura,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23475081/mongodb-findandmodify-with-writeconcern
Simulant :

The MongoDB Java Driver is a Wrapper to access the MongoDB shell commands from inside of your java code. DBCollection#findAndModify does not provide a flag to force a WriteConcern for a single operation. So this Operation uses the default setting of the mongod instance it is writing to.",
2014-05-05T14:57:23
yy