Objective-C
@interface RLMFindOptions : NSObject
Swift
@_nonSendable(_assumed) 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.
DeclarationObjective-C
@property (nonatomic) NSInteger limit;
Swift
var limit: Int { get set }
Limits the fields to return for all matching documents.
DeclarationObjective-C
@property (nonatomic, nullable) id<RLMBSON> projection;
Deprecated
Use sorting
instead, which correctly sort more than one sort attribute
The order in which to return matching documents.
DeclarationObjective-C
@property (nonatomic, nullable) id<RLMBSON> sort;
The order in which to return matching documents.
DeclarationObjective-C
@property (nonatomic) NS_REFINED_FOR_SWIFT NSArray<id<RLMBSON>> *sorting;
Deprecated
Please use initWithLimit:projection:sorting:
Options to use when executing a find
command on a RLMMongoCollection
.
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.
Deprecated
Please use initWithProjection:sorting:
Options to use when executing a find
command on a RLMMongoCollection
.
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.
Options to use when executing a find
command on a RLMMongoCollection
.
Objective-C
- (nonnull instancetype)initWithLimit:(NSInteger)limit
projection:(id<RLMBSON> _Nullable)projection
sorting:(nonnull NSArray<id<RLMBSON>> *)sorting;
Swift
init(limit: Int, projection: (any RLMBSON)?, sorting: [any RLMBSON])
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.
sorting
The order in which to return matching documents.
Options to use when executing a find
command on a RLMMongoCollection
.
Objective-C
- (nonnull instancetype)initWithProjection:(id<RLMBSON> _Nullable)projection
sorting:
(nonnull NSArray<id<RLMBSON>> *)sorting;
Parameters projection
Limits the fields to return for all matching documents.
sorting
The order in which to return matching documents.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4