CreateIndexOptions
public struct CreateIndexOptions : Encodable
Options to use when creating a new index on a MongoCollection
.
-
The maximum amount of time to allow the query to run - enforced server-side.
Declaration
Swift
public var maxTimeMS: Int?
-
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(maxTimeMS: Int? = nil, writeConcern: WriteConcern? = nil)