FindOptions
extension FindOptions
-
Limits the fields to return for all matching documents.
Declaration
Swift
public var projection: Document? { get set } -
The order in which to return matching documents.
Declaration
Swift
public var sort: Document? { get set } -
Options to use when executing a
findcommand on aMongoCollection.Declaration
Parameters
limitThe maximum number of documents to return. Specifying 0 will return all documents.
projectedLimits the fields to return for all matching documents.
sortThe order in which to return matching documents.
-
Options to use when executing a
findcommand on aMongoCollection.Parameters
limitThe maximum number of documents to return. Specifying 0 will return all documents.
projectedLimits the fields to return for all matching documents.
sortThe order in which to return matching documents.
View on GitHub
Install in Dash