CountDocumentsOptions
public struct CountDocumentsOptions : Codable
Options to use when executing a countDocuments command on a MongoCollection.
-
Specifies a collation.
Declaration
Swift
public var collation: BSONDocument? -
A hint for the index to use.
Declaration
Swift
public var hint: IndexHint? -
The maximum number of documents to count.
Declaration
Swift
public var limit: Int? -
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? -
The number of documents to skip before counting.
Declaration
Swift
public var skip: Int? -
Convenience initializer allowing any/all parameters to be optional
Declaration
Swift
public init( collation: BSONDocument? = nil, hint: IndexHint? = nil, limit: Int? = nil, maxTimeMS: Int? = nil, readConcern: ReadConcern? = nil, readPreference: ReadPreference? = nil, skip: Int? = nil )
View on GitHub
Install in Dash
CountDocumentsOptions Structure Reference