Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApolloElementInterface<TData>

Type parameters

  • TData

Hierarchy

Implemented by

Index

Properties

client

The Apollo Client instance.

Optional context

context: Record<string, unknown>

Context to be passed to link execution chain.

data

data: TData

Latest data

document

document: DocumentNode

GraphQL operation document i.e. query, subscription, or mutation. Must be a parsed GraphQL DocumentNode, so use graphql-tag. If unset, the element can derive the document from the first light-DOM <script type="application/graphql"> child.

error

Latest error

errors

errors: readonly GraphQLError[]

Latest errors

loading

loading: boolean

Whether a request is in flight.