UpdateResult
public struct UpdateResult : Codable
The result of an update operation on a MongoCollection.
-
The number of documents that matched the filter.
Declaration
Swift
public let matchedCount: Int -
The number of documents that were modified.
Declaration
Swift
public let modifiedCount: Int -
The identifier of the inserted document if an upsert took place.
Declaration
Swift
public let upsertedID: BSON? -
The number of documents that were upserted.
Declaration
Swift
public let upsertedCount: Int
View on GitHub
Install in Dash
UpdateResult Structure Reference