InsertManyResult

public struct InsertManyResult

The result of a multi-document insert operation on a MongoCollection.

  • Number of documents inserted.

    Declaration

    Swift

    public let insertedCount: Int
  • Map of the index of the document in values to the value of its ID

    Declaration

    Swift

    public let insertedIds: [Int : BSONValue]