CreateIndexOptions
public struct CreateIndexOptions : Encodable
Options to use when creating a new index on a MongoCollection
.
-
An optional
WriteConcern
to use for the command.Declaration
Swift
public var writeConcern: WriteConcern?
-
Initializer allowing any/all parameters to be omitted.
Declaration
Swift
public init(writeConcern: WriteConcern? = nil)