UpdateResult

public struct UpdateResult : Decodable

The result of an update operation 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: BSONValue?
  • The number of documents that were upserted.

    Declaration

    Swift

    public let upsertedCount: Int
  • Declaration

    Swift

    public init(from decoder: Decoder) throws