Offline Observe And Cache Query
Executes the query and cache its result for future offline use and listens to updates
Description
Runs the query and listens to further updates. The queried data is saved in the cache entry specified by its id for offline usage. (see Offline: Clear Cache Entry
to clear the entry).
The output query result
contains an ordered list of objects matching the query. The list is refreshed every time the resulting list gets changed in the database.
Unlike Execute Query
, Observe Query
produces multiple results, as the set of objects matching the query evolves.
Feel free to explore the demo app showcasing main offline concepts in this <a href="#item=018e5b730217546bb956">demo application</a>
Inputs
- query (Query): The query to be observed
- cache id (String): If provided, will keep the result of this query in the cache with the given name.
Outputs
- query result (Query Result): The continuously updated list of objects matching the query