UpdateResult
The result of an update operation. If the update was unacknowledged, then wasAcknowledged
will return false and all other
methods will throw UnsupportedOperationException
.
- See also:
com.mongodb.WriteConcern#UNACKNOWLEDGED
- Since:
3.0
Value members
Concrete methods
Gets the number of documents matched by the query.
Gets the number of documents matched by the query.
- Returns:
a Task of the number of documents matched
Gets the number of documents modified by the update.
Gets the number of documents modified by the update.
- Returns:
a Task the number of documents modified
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise None.
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise None.
- Returns:
if the replace resulted in an inserted document, the _id of the inserted document, otherwise Noe