DropIndexOptions
public struct DropIndexOptions : Encodable
Options to use when dropping an index from 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)