Gluon: ApolloMutation

ApolloMutation inherits from ApolloElement and implements the ApolloMutationInterface.

Read the mutation component guides for examples and tips.

ApolloMutation

👩‍🚀 Custom element base class to issue mutations via your Apollo cache.

See ApolloMutationInterface for more information on events

Properties

data

Data<D> | null
Latest mutation data.

variables

Variables<D, V> | null
Mutation variables.An object that maps from the name of a variable as used in the mutation GraphQL document to that variable’s value.

Exports

js html

js ApolloMutation from apollo-mutation.js