update One
Update a single document in the collection according to the specified arguments.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
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.
Throws
Update a single document in the collection according to the specified arguments.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
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 update operation
Throws
Update a single document in the collection according to the specified arguments.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.6
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.
Throws
Update a single document in the collection according to the specified arguments.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.6
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 update operation