Optional
opts: { timeout?: number }Execute the query once and return the results. Does not subscribe to updates.
Optional
timeout: { timeout?: number }Runs the query synchronously and returns all results.
WARNING: This method will only return the data already cached and may return incomplete results.
Use this.run()
for a complete list of results stored on-disk.
Subscribe to query results. Updates only when the identity or the order of the objects changes. Does not update when the object properties change.
Optional
callback: (query: QueryResult<T>) => voidOptional
opts: QuerySubscriptionOptions
Predicate based query.