LCQuery

Objective-C

@interface LCQuery : NSObject

Swift

class LCQuery : NSObject

Undocumented

Creating a Query for a Class */

Adding Basic Constraints */

  • Undocumented

    Declaration

    Objective-C

    - (void)includeKey:(nonnull NSString *)key;

    Swift

    func includeKey(_ key: String)
  • Reset included keys.

    Declaration

    Objective-C

    - (void)resetIncludeKey;

    Swift

    func resetIncludeKey()
  • Undocumented

    Declaration

    Objective-C

    - (void)selectKeys:(nonnull NSArray<NSString *> *)keys;

    Swift

    func selectKeys(_ keys: [String])
  • Reset selected keys.

    Declaration

    Objective-C

    - (void)resetSelectKey;

    Swift

    func resetSelectKey()
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKeyExists:(nonnull NSString *)key;

    Swift

    func whereKeyExists(_ key: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKeyDoesNotExist:(nonnull NSString *)key;

    Swift

    func whereKeyDoesNotExist(_ key: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key equalTo:(nonnull id)object;

    Swift

    func whereKey(_ key: String, equalTo object: Any)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key lessThan:(nonnull id)object;

    Swift

    func whereKey(_ key: String, lessThan object: Any)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key lessThanOrEqualTo:(nonnull id)object;

    Swift

    func whereKey(_ key: String, lessThanOrEqualTo object: Any)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key greaterThan:(nonnull id)object;

    Swift

    func whereKey(_ key: String, greaterThan object: Any)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        greaterThanOrEqualTo:(nonnull id)object;

    Swift

    func whereKey(_ key: String, greaterThanOrEqualTo object: Any)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key notEqualTo:(nonnull id)object;

    Swift

    func whereKey(_ key: String, notEqualTo object: Any)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key containedIn:(nonnull NSArray *)array;

    Swift

    func whereKey(_ key: String, containedIn array: [Any])
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        notContainedIn:(nonnull NSArray *)array;

    Swift

    func whereKey(_ key: String, notContainedIn array: [Any])
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        containsAllObjectsInArray:(nonnull NSArray *)array;

    Swift

    func whereKey(_ key: String, containsAllObjectsIn array: [Any])

Adding Location Constraints */

Adding String Constraints */

  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key matchesRegex:(nonnull NSString *)regex;

    Swift

    func whereKey(_ key: String, matchesRegex regex: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        matchesRegex:(nonnull NSString *)regex
           modifiers:(nullable NSString *)modifiers;

    Swift

    func whereKey(_ key: String, matchesRegex regex: String, modifiers: String?)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        containsString:(nonnull NSString *)substring;

    Swift

    func whereKey(_ key: String, contains substring: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key hasPrefix:(nonnull NSString *)prefix;

    Swift

    func whereKey(_ key: String, hasPrefix prefix: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key hasSuffix:(nonnull NSString *)suffix;

    Swift

    func whereKey(_ key: String, hasSuffix suffix: String)

Adding Subqueries */

  • Undocumented

    Declaration

    Objective-C

    + (nullable LCQuery *)orQueryWithSubqueries:
        (nonnull NSArray<LCQuery *> *)queries;

    Swift

    class func orQuery(withSubqueries queries: [LCQuery]) -> LCQuery?
  • Undocumented

    Declaration

    Objective-C

    + (nullable LCQuery *)andQueryWithSubqueries:
        (nonnull NSArray<LCQuery *> *)queries;

    Swift

    class func andQuery(withSubqueries queries: [LCQuery]) -> LCQuery?
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
          matchesKey:(nonnull NSString *)otherKey
             inQuery:(nonnull LCQuery *)query;

    Swift

    func whereKey(_ key: String, matchesKey otherKey: String, in query: LCQuery)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        doesNotMatchKey:(nonnull NSString *)otherKey
                inQuery:(nonnull LCQuery *)query;

    Swift

    func whereKey(_ key: String, doesNotMatchKey otherKey: String, in query: LCQuery)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key matchesQuery:(nonnull LCQuery *)query;

    Swift

    func whereKey(_ key: String, matchesQuery query: LCQuery)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key
        doesNotMatchQuery:(nonnull LCQuery *)query;

    Swift

    func whereKey(_ key: String, doesNotMatch query: LCQuery)
  • Undocumented

    Declaration

    Objective-C

    - (void)whereKey:(nonnull NSString *)key sizeEqualTo:(NSUInteger)count;

    Swift

    func whereKey(_ key: String, sizeEqualTo count: UInt)

Sorting */

  • Undocumented

    Declaration

    Objective-C

    - (void)orderByAscending:(nonnull NSString *)key;

    Swift

    func order(byAscending key: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)addAscendingOrder:(nonnull NSString *)key;

    Swift

    func addAscendingOrder(_ key: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)orderByDescending:(nonnull NSString *)key;

    Swift

    func order(byDescending key: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)addDescendingOrder:(nonnull NSString *)key;

    Swift

    func addDescendingOrder(_ key: String)
  • Undocumented

    Declaration

    Objective-C

    - (void)orderBySortDescriptor:(nonnull NSSortDescriptor *)sortDescriptor;

    Swift

    func order(by sortDescriptor: NSSortDescriptor)
  • Undocumented

    Declaration

    Objective-C

    - (void)orderBySortDescriptors:(nonnull NSArray *)sortDescriptors;

    Swift

    func order(bySortDescriptors sortDescriptors: [Any])

Getting Objects by ID */

Getting User Objects */

Getting all Matches for a Query */

Getting the First Match in a Query */

Counting the Matches in a Query */

Cancelling a Query */

Paginating Results */

  • Declaration

    Objective-C

    @property (nonatomic) NSInteger limit;

    Swift

    var limit: Int { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSInteger skip;

    Swift

    var skip: Int { get set }
  • Include ACL for object.

    Declaration

    Objective-C

    @property (nonatomic) BOOL includeACL;

    Swift

    var includeACL: Bool { get set }

Controlling Caching Behavior */

Advanced Settings */

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL trace;

    Swift

    var trace: Bool { get set }