OptionalincludeOptional array specifying queries to refetch. Each element can be either a query's string name or a DocumentNode object.
Pass "active" as a shorthand to refetch all active queries, or "all" to refetch all active and inactive queries.
Analogous to the options.refetchQueries array for mutations.
OptionalonOptional callback function that's called once for each ObservableQuery that's either affected by options.updateCache or listed in options.include (or both).
If onQueryUpdated is not provided, the default implementation returns the result of calling observableQuery.refetch(). When onQueryUpdated is provided, it can dynamically decide whether (and how) each query should be refetched.
Returning false from onQueryUpdated prevents the associated query from being refetched.
OptionaloptimisticIf true, the options.updateCache function is executed on a temporary optimistic layer of InMemoryCache, so its modifications can be discarded from the cache after observing which fields it invalidated.
Defaults to false, meaning options.updateCache updates the cache in a lasting way.
OptionalupdateOptional function that updates cached fields to trigger refetches of queries that include those fields.
Options object for the
client.refetchQueriesmethod.