ObservableQuery and begins fetching data (unless configured otherwise).
ObservableQuery or attempts to initialize a new one and fetch.
Called synchronously before all automatic attempts to subscribe. If it returns true, the element will subscribe and begin fetching. Returns
true by default, Override to prevent automatic subscription.
When called automatically (via
variablesChanged) or explicitly, it stops any existing
ObservableQuery, then initializes a new one and begins fetching.
If you want to explicitly run a query and receive a promise of the result, then
await element.executeQuery(). The promise will resolve when the query does, and after the element instances' properties are set.
Set this property at any point to reobserve the
onData callback is a unary function that takes an
onData is called after the element instance' properties are set.
onError callback is a unary function that takes an
onError is called after the element instance' properties are set.
Listen for the
apollo-error events to react to changes. They fire before the element instance' properties are set.
Detail is an
|data||If the query resolved, the data.|
|error||If the query rejected, the error.|
|errors||If the query returned partials results, and some were errors, the list of errors.|
|loading||Whether the operation is in-flight.|
|partial||Whether the query returned partial data.|