DistinctOptions
public struct DistinctOptions : Codable
Options to use when executing a distinct
command on a MongoCollection
.
-
Specifies a collation.
Declaration
Swift
public var collation: BSONDocument?
-
The maximum amount of time to allow the query to run.
Declaration
Swift
public var maxTimeMS: Int?
-
A ReadConcern to use for this operation.
Declaration
Swift
public var readConcern: ReadConcern?
-
A ReadPreference to use for this operation.
Declaration
Swift
public var readPreference: ReadPreference?
-
Convenience initializer allowing any/all parameters to be optional
Declaration
Swift
public init( collation: BSONDocument? = nil, maxTimeMS: Int? = nil, readConcern: ReadConcern? = nil, readPreference: ReadPreference? = nil )