QueryResultSet

Summary

Instances of QueryResultSet hold a set of models retrieved from the database at a given offset.

Complete vs Incomplete:

QueryResultSet keeps an array of item ids and a lookup table of models. The lookup table may be incomplete if the QuerySubscription isn't finished preparing results. You can use isComplete to determine whether the set has every model.

Offset vs Index:

To avoid confusion, "index" refers to an item's position in an array, and "offset" refers to it's position in the query result set. For example, an item might be at index 20 in the _ids array, but at offset 120 in the result.

Ids and clientIds:

QueryResultSet calways returns object ids when asked for ids, but lookups for models by clientId work once models are loaded.

results matching ""

    No results matching ""