InsertOneResult

public struct InsertOneResult : Decodable

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: BSONValue
  • Declaration

    Swift

    public init(from decoder: Decoder) throws