InsertOneResult

public struct InsertOneResult : Codable

The result of an insertOne command on a MongoCollection.

  • The identifier that was inserted. If the document doesn’t have an identifier, this value will be generated and added to the document before insertion.

    Declaration

    Swift

    public let insertedID: BSON