replaceOne
Replace a document in the collection according to the specified arguments.
Return
the result of the replace one operation
Parameters
the document to replace - must have an non null id
the options to apply to the replace 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
Replace a document in the collection according to the specified arguments.
Return
the result of the replace one operation
Parameters
the query filter to apply to the replace operation
the replacement document
the options to apply to the replace 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
Replace a document in the collection according to the specified arguments.
Return
the result of the replace one operation
Parameters
the client session with which to associate this operation
the document to replace - must have an non null id
the options to apply to the replace 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
Replace a document in the collection according to the specified arguments.
Return
the result of the replace one operation
Parameters
the client session with which to associate this operation
the query filter to apply to the replace operation
the replacement document
the options to apply to the replace 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