RLMFindOptions

Objective-C

@interface RLMFindOptions : NSObject

Swift

class RLMFindOptions : NSObject

Options to use when executing a find command on a RLMMongoCollection.

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

    Declaration

    Objective-C

    @property (nonatomic) NSInteger limit;

    Swift

    var limit: Int { get set }
  • Limits the fields to return for all matching documents.

    Declaration

    Objective-C

    @property (nonatomic, nullable) id<RLMBSON> projection;
  • The order in which to return matching documents.

    Declaration

    Objective-C

    @property (nonatomic, nullable) id<RLMBSON> sort;
  • Options to use when executing a find command on a RLMMongoCollection.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLimit:(NSInteger)limit
                               projection:(id<RLMBSON> _Nullable)projection
                                     sort:(id<RLMBSON> _Nullable)sort;

    Parameters

    limit

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

    projection

    Limits the fields to return for all matching documents.

    sort

    The order in which to return matching documents.

  • Options to use when executing a find command on a RLMMongoCollection.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithProjection:(id<RLMBSON> _Nullable)projection
                                          sort:(id<RLMBSON> _Nullable)sort;

    Parameters

    projection

    Limits the fields to return for all matching documents.

    sort

    The order in which to return matching documents.