findOneAndUpdate
Atomically find a document and update it with the not null properties of update.
Return
the document that was updated (before or after the update, depending of the options)
Parameters
a document describing the query filter
the object used to build the update
the options to apply to the operation
Atomically find a document and update it with the not null properties of update.
Return
the document that was updated (before or after the update, depending of the options)
Parameters
the client session with which to associate this operation
a document describing the query filter
the object used to build the update
the options to apply to the operation
Atomically find a document and update it.
Return
the document that was updated. Depending on the value of the returnOriginal property, this will either be the document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be returned
Parameters
a document describing the query filter, which may not be null.
a document describing the update, which may not be null. The update to apply must include only update operators.
the options to apply to the operation
Atomically find a document and update it.
Return
the document that was updated. Depending on the value of the returnOriginal property, this will either be the document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be returned
Parameters
the client session with which to associate this operation
a document describing the query filter, which may not be null.
a document describing the update, which may not be null. The update to apply must include only update operators.
the options to apply to the operation