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