LCQuery<T extends LCObject> class

A query to fetch LCObject.

Implementers

Constructors

LCQuery(String? className)
Creates a new query for className.

Properties

className String?
Which className to query.
getter/setter pair
condition ↔ _LCCompositionalCondition
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxCacheAge Duration?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAscendingOrder(String key) LCQuery<T>
Also sorts the results in ascending order by the given key.
addDescendingOrder(String key) LCQuery<T>
Also sorts the results in descending order by the given key.
count() Future<int>
Counts the number of results.
find({CachePolicy cachePolicy = CachePolicy.onlyNetwork}) Future<List<T>?>
Retrieves a list of LCObjects matching this query, respecting cachePolicy.
first() Future<T?>
Retrieves at most one LCObject matching this query.
get(String objectId) Future<T?>
Constructs a LCObject whose objectId is already known.
include(String key) LCQuery<T>
Includes nested LCObject for the provided key.
includeACL(bool value) LCQuery<T>
Includes the ALC or not.
limit(int amount) LCQuery<T>
Sets the limit of the number of results to return.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderByAscending(String key) LCQuery<T>
orderByDescending(String key) LCQuery<T>
select(String keys) LCQuery<T>
Restricts the keys of the LCObject returned.
skip(int amount) LCQuery<T>
Sets the amount of results to skip before returning any results.
toString() String
A string representation of this object.
inherited
whereContainedIn(String key, Iterable values) LCQuery<T>
The value of key must be contained in values.
whereContains(String key, String subString) LCQuery<T>
whereContainsAll(String key, Iterable values) LCQuery<T>
The array key must contain all values.
whereDoesNotExist(String key) LCQuery<T>
The LCObject must not contain the given key.
whereDoesNotMatchQuery(String key, LCQuery<LCObject> query) LCQuery<T>
The value of key must not match query.
whereEndsWith(String key, String suffix) LCQuery<T>
whereEqualTo(String key, dynamic value) LCQuery<T>
whereExists(String key) LCQuery<T>
The LCObject must contain the given key.
whereGreaterThan(String key, dynamic value) LCQuery<T>
whereGreaterThanOrEqualTo(String key, dynamic value) LCQuery<T>
whereLessThan(String key, dynamic value) LCQuery<T>
whereLessThanOrEqualTo(String key, dynamic value) LCQuery<T>
whereMatches(String key, String regex, {String? modifiers}) LCQuery<T>
whereMatchesQuery(String key, LCQuery<LCObject> query) LCQuery<T>
The value of key must match query.
whereNear(String key, LCGeoPoint point) LCQuery<T>
whereNotContainedIn(String key, Iterable values) LCQuery<T>
The value of key must not be contained in values.
whereNotEqualTo(String key, dynamic value) LCQuery<T>
whereRelatedTo(LCObject parent, String key) LCQuery<T>
whereSizeEqualTo(String key, int size) LCQuery<T>
whereStartsWith(String key, String prefix) LCQuery<T>
whereWithinGeoBox(String key, LCGeoPoint southwest, LCGeoPoint northeast) LCQuery<T>
whereWithinKilometers(String key, LCGeoPoint point, double maxDistance) LCQuery<T>
whereWithinMiles(String key, LCGeoPoint point, double maxDistance) LCQuery<T>
whereWithinRadians(String key, LCGeoPoint point, double maxDistance) LCQuery<T>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

and<T extends LCObject>(Iterable<LCQuery<T>> queries) LCQuery<T>
Constructs a LCQuery that is the AND of the passed in queries.
or<T extends LCObject>(Iterable<LCQuery<T>> queries) LCQuery<T>
Constructs a LCQuery that is the OR of the passed in queries.