BulkWriteResult

public struct BulkWriteResult : Decodable

The result of a bulk write operation on a MongoCollection.

  • Number of documents deleted.

    Declaration

    Swift

    public let deletedCount: Int
  • Number of documents inserted.

    Declaration

    Swift

    public let insertedCount: Int
  • Map of the index of the operation to the id of the inserted document.

    Declaration

    Swift

    public let insertedIds: [Int : BSONValue]
  • Number of documents matched for update.

    Declaration

    Swift

    public let matchedCount: Int
  • Number of documents modified.

    Declaration

    Swift

    public let modifiedCount: Int
  • Number of documents upserted.

    Declaration

    Swift

    public let upsertedCount: Int
  • Map of the index of the operation to the id of the upserted document.

    Declaration

    Swift

    public let upsertedIds: [Int : BSONValue]
  • Declaration

    Swift

    public init(from decoder: Decoder) throws