Apollo Elements Apollo Elements Guides API Blog Toggle darkmode

Gluon: ApolloQuery

ApolloQuery inherits from ApolloElement and implements the ApolloQueryInterface.

Read the query component guides for examples and tips.

ApolloQuery

🚀 Custom element base class that connects to your Apollo cache.

Properties

variables

Variables<D, V> | null

Query variables.

An object that maps from the name of a variable as used in the query GraphQL document to that variable's value.

noAutoSubscribe

no-auto-subscribe
boolean

nextFetchPolicy

next-fetch-policy
WatchQueryFetchPolicy | NextFetchPolicyFunction<D, V>

networkStatus

NetworkStatus

fetchPolicy

fetch-policy
WatchQueryFetchPolicy

errorPolicy

error-policy
ErrorPolicy

data

Data<D> | null

Latest query data.

Exports

import { ApolloQuery } from '@apollo-elements/fast/apollo-query';