MongoCollection.findAndModifyExt

Bson findAndModifyExt(T, U, V)(T query, U update, V options)

Combines a modify and find operation to a single atomic operation with generic options support.

Parameters

queryMongoDB query expression to identify the matched document
updateUpdate expression for the matched document
optionsGeneric BSON object that contains additional options fields, such as "new": true

Throws

An Exception will be thrown if an error occurs in the

communication with the database server.

See Also