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 find command on a RLMMongoCollection.

    Declaration

    Swift

    public convenience init(_ limit: Int?, _ projection: Document?, _ sort: Document?)

    Parameters

    limit

    The maximum number of documents to return. Specifying 0 will return all documents.

    projected

    Limits the fields to return for all matching documents.

    sort

    The order in which to return matching documents.