updateOne
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
a document describing the query filter
a document describing the update. The update to apply must include only update operators.
the options to apply to the update operation
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
a document describing the query filter
the update object
the options to apply to the update operation
if true do not change null properties
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
the update object - must have an non null id
the options to apply to the update operation
if true do not change null properties
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
a document describing the query filter
the update object
the options to apply to the update operation
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
a document describing the query filter
the setTo describing the updates
the options to apply to the update operation
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
the client session with which to associate this operation
a document describing the query filter
a document describing the update. The update to apply must include only update operators.
the options to apply to the update operation
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
the client session with which to associate this operation
a document describing the query filter
the update object
the options to apply to the update operation
if true do not change null properties
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
the client session with which to associate this operation
the update object - must have an non null id
the options to apply to the update operation
if true do not change null properties
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Update a single document in the collection according to the specified arguments.
Return
the result of the update one operation
Parameters
the client session with which to associate this operation
a document describing the query filter
the setTo describing the updates
the options to apply to the update operation
Throws
if the write failed due some other failure specific to the update command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure