GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing leancloud.github.io — Query - Documentation Constructornew Query(objectClass)
Creates a new AV.Query for the given AV.Object subclass.
Parameters:
Methods(static) and(…var_args) → {AV.Query}
Constructs a AV.Query that is the AND of the passed in queries. For
example:
var compoundQuery = AV.Query.and(query1, query2, query3);will create a compoundQuery that is an 'and' of the query1, query2, and query3. Parameters:
Returns:
The query that is the AND of the passed in queries.
(static) doCloudQuery(cql, pvalues, options) → {Promise}
Retrieves a list of AVObjects that satisfy the CQL.
CQL syntax please see CQL Guide.
Parameters:
Returns:
A promise that is resolved with the results when
the query completes.
(static) fromJSON(json) → {AV.Query}
Return a query with conditions from json.
This can be useful to send a query from server side to client side.
Parameters:
Returns:
(static) or(…var_args) → {AV.Query}
Constructs a AV.Query that is the OR of the passed in queries. For
example:
var compoundQuery = AV.Query.or(query1, query2, query3);will create a compoundQuery that is an or of the query1, query2, and query3. Parameters:
Returns:
The query that is the OR of the passed in queries.
addAscending(key) → {AV.Query}
Also sorts the results in ascending order by the given key. The previous sort keys have
precedence over this key.
Parameters:
Returns:
Returns the query so you can chain this call.
addDescending(key) → {AV.Query}
Also sorts the results in descending order by the given key. The previous sort keys have
precedence over this key.
Parameters:
Returns:
Returns the query so you can chain this call.
ascending(key) → {AV.Query}
Sorts the results in ascending order by the given key.
Parameters:
Returns:
Returns the query, so you can chain this call.
containedIn(key, values) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be contained in the provided list of values.
Parameters:
Returns:
Returns the query, so you can chain this call.
contains(key, substring) → {AV.Query}
Add a constraint for finding string values that contain a provided
string. This may be slow for large datasets.
Parameters:
Returns:
Returns the query, so you can chain this call.
containsAll(key, values) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
contain each one of the provided list of values.
Parameters:
Returns:
Returns the query, so you can chain this call.
count(options) → {Promise}
Counts the number of objects that match this query.
Parameters:
Returns:
A promise that is resolved with the count when
the query completes.
descending(key) → {AV.Query}
Sorts the results in descending order by the given key.
Parameters:
Returns:
Returns the query, so you can chain this call.
destroyAll(options) → {Promise}
Delete objects retrieved by this query.
Parameters:
Returns:
A promise that is fulfilled when the save
completes.
doesNotExist(key) → {AV.Query}
Add a constraint for finding objects that do not contain a given key.
Parameters:
Returns:
Returns the query, so you can chain this call.
doesNotMatchKeyInQuery(key, queryKey, query) → {AV.Query}
Add a constraint that requires that a key's value not match a value in
an object returned by a different AV.Query.
Parameters:
Returns:
Returns the query, so you can chain this call.
doesNotMatchQuery(key, query) → {AV.Query}
Add a constraint that requires that a key's value not matches a
AV.Query constraint.
Parameters:
Returns:
Returns the query, so you can chain this call.
each(callback) → {Promise}
Iterates over each result of a query, calling a callback for each one. If
the callback returns a promise, the iteration will not continue until
that promise has been fulfilled. If the callback returns a rejected
promise, then iteration will stop with that error. The items are
processed in an unspecified order. The query may not have any sort order,
and may not use limit or skip.
Parameters:
Returns:
A promise that will be fulfilled once the
iteration has completed.
endsWith(key, suffix) → {AV.Query}
Add a constraint for finding string values that end with a provided
string. This will be slow for large datasets.
Parameters:
Returns:
Returns the query, so you can chain this call.
equalTo(key, value) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be equal to the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
exists(key) → {AV.Query}
Add a constraint for finding objects that contain the given key.
Parameters:
Returns:
Returns the query, so you can chain this call.
find(options) → {Promise}
Retrieves a list of AVObjects that satisfy this query.
Parameters:
Returns:
A promise that is resolved with the results when
the query completes.
findAndCount(options) → {Promise}
Retrieves both AVObjects and total count.
Parameters:
Returns:
A tuple contains results and count.
first(options) → {Promise}
Retrieves at most one AV.Object that satisfies this query.
Parameters:
Returns:
A promise that is resolved with the object when
the query completes.
get(objectId, options) → {Promise.<AV.Object>}
Constructs an AV.Object whose id is already known by fetching data from
the server.
Parameters:
Returns:
greaterThan(key, value) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be greater than the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
greaterThanOrEqualTo(key, value) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be greater than or equal to the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
include(keys) → {AV.Query}
Include nested AV.Objects for the provided key. You can use dot
notation to specify which fields in the included object are also fetch.
Parameters:
Returns:
Returns the query, so you can chain this call.
includeACL(valueopt) → {AV.Query}
Include the ACL.
Parameters:
Returns:
Returns the query, so you can chain this call.
lessThan(key, value) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be less than the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
lessThanOrEqualTo(key, value) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be less than or equal to the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
limit(n) → {AV.Query}
Sets the limit of the number of results to return. The default limit is
100, with a maximum of 1000 results being returned at a time.
Parameters:
Returns:
Returns the query, so you can chain this call.
matches(key, regex) → {AV.Query}
Add a regular expression constraint for finding string values that match
the provided regular expression.
This may be slow for large datasets.
Parameters:
Returns:
Returns the query, so you can chain this call.
matchesKeyInQuery(key, queryKey, query) → {AV.Query}
Add a constraint that requires that a key's value matches a value in
an object returned by a different AV.Query.
Parameters:
Returns:
Returns the query, so you can chain this call.
matchesQuery(key, query) → {AV.Query}
Add a constraint that requires that a key's value matches a AV.Query
constraint.
Parameters:
Returns:
Returns the query, so you can chain this call.
near(key, point) → {AV.Query}
Add a proximity based constraint for finding objects with key point
values near the point given.
Parameters:
Returns:
Returns the query, so you can chain this call.
notContainedIn(key, values) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
not be contained in the provided list of values.
Parameters:
Returns:
Returns the query, so you can chain this call.
notEqualTo(key, value) → {AV.Query}
Add a constraint to the query that requires a particular key's value to
be not equal to the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
scan(optionsopt, authOptionsopt) → {AsyncIterator.<AV.Object>}
scan a Query. masterKey required.
Example
Parameters:
Returns:
select(keys) → {AV.Query}
Restrict the fields of the returned AV.Objects to include only the
provided keys. If this is called multiple times, then all of the keys
specified in each of the calls will be included.
Parameters:
Returns:
Returns the query, so you can chain this call.
sizeEqualTo(key, value) → {AV.Query}
Add a constraint to the query that requires a particular
array key's length to be equal to the provided value.
Parameters:
Returns:
Returns the query, so you can chain this call.
skip(n) → {AV.Query}
Sets the number of results to skip before returning any results.
This is useful for pagination.
Default is to skip zero results.
Parameters:
Returns:
Returns the query, so you can chain this call.
startsWith(key, prefix) → {AV.Query}
Add a constraint for finding string values that start with a provided
string. This query will use the backend index, so it will be fast even
for large datasets.
Parameters:
Returns:
Returns the query, so you can chain this call.
subscribe() → {AV.LiveQuery}
Subscribe the changes of this query.
LiveQuery is not included in the default bundle: https://url.leanapp.cn/enable-live-query.
Returns:
An eventemitter which can be used to get LiveQuery updates;
toJSON() → {Object}
Returns a JSON representation of this query.
Returns:
withinGeoBox(key, southwest, northeast) → {AV.Query}
Add a constraint to the query that requires a particular key's
coordinates be contained within a given rectangular geographic bounding
box.
Parameters:
Returns:
Returns the query, so you can chain this call.
withinKilometers(key, point, maxDistance) → {AV.Query}
Add a proximity based constraint for finding objects with key point
values near the point given and within the maximum distance given.
Radius of earth used is 6371.0 kilometers.
Parameters:
Returns:
Returns the query, so you can chain this call.
withinMiles(key, point, maxDistance) → {AV.Query}
Add a proximity based constraint for finding objects with key point
values near the point given and within the maximum distance given.
Radius of earth used is 3958.8 miles.
Parameters:
Returns:
Returns the query, so you can chain this call.
withinRadians(key, point, maxDistance) → {AV.Query}
Add a proximity based constraint for finding objects with key point
values near the point given and within the maximum distance given.
Parameters:
Returns:
Returns the query, so you can chain this call.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |