UpdateResult class
The result type returned from UpdateOne, UpdateMany, and ReplaceOne operations.
Reference
See https://pkg.go.dev/go.mongodb.org/mongo-driver@v1.10.3/mongo#UpdateResult.
Constructors
- UpdateResult({required dynamic upsertedId, required int matchedCount, required int modifiedCount, required int upsertedCount})
- UpdateResult.fromProto(UpdateResult pResult)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- matchedCount → int
-
The number of documents matched by the filter.
final
- modifiedCount → int
-
The number of documents modified by the operation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upsertedCount → int
-
The number of documents upserted by the operation.
final
- upsertedId → dynamic
-
The _id field of the upserted document, or null if no upsert was done.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited