Apollo Elements Apollo Elements Guides API Blog Toggle darkmode

Gluon: ApolloSubscription

ApolloSubscription inherits from ApolloElement and implements the ApolloSubscriptionInterface.

Read the subscription component guides for examples and tips.

ApolloSubscription

🚀 Custom element base class that updates with an Apollo GraphQL subscription.

Properties

variables

Variables<D, V> | null

Subscription variables.

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

fetchPolicy

fetch-policy
FetchPolicy

data

Data<D> | null

Latest subscription data.

Exports

import { ApolloSubscription } from '@apollo-elements/fast/apollo-subscription';