Class MongoClient.UpdateResult
The result of UpdateOneAsync(object?, object, bool) or UpdateManyAsync(object?, object, bool) operation.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
public class MongoClient.UpdateResult
Properties
| Edit this page View SourceMatchedCount
Gets the number of documents matched by the filter.
Declaration
[BsonElement("matchedCount")]
[Preserve]
public int MatchedCount { get; }
Property Value
Type | Description |
---|---|
int | The number of matched documents. |
ModifiedCount
Gets the number of documents modified by the operation.
Declaration
[BsonElement("modifiedCount")]
[Preserve]
public int ModifiedCount { get; }
Property Value
Type | Description |
---|---|
int | The number of modified documents. |
UpsertedId
Gets the _id
of the inserted document if the operation resulted in an insertion.
Declaration
[BsonElement("upsertedId")]
[Preserve]
public object? UpsertedId { get; }
Property Value
Type | Description |
---|---|
object | The |