EstimatedDocumentCountOptions
public struct EstimatedDocumentCountOptions : Codable
Options to use when executing an estimatedDocumentCount
command on a MongoCollection
.
-
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( maxTimeMS: Int? = nil, readConcern: ReadConcern? = nil, readPreference: ReadPreference? = nil )