watchQuery method

ObservableQuery watchQuery (
  1. WatchQueryOptions options
)

This registers a query in the QueryManager and returns an ObservableQuery based on the provided WatchQueryOptions.

Implementation

ObservableQuery watchQuery(WatchQueryOptions options) {
  options.policies =
      defaultPolicies.watchQuery.withOverrides(options.policies);
  return queryManager.watchQuery(options);
}