👩🚀 Custom element base class to issue mutations via your Apollo cache.
ApolloMutationInterface for more information on events
As an attribute, can be a string of comma-separated query names
<mutation-element refetch-queries="QueryA, QueryB,QueryC"></mutation-element>
As a property, you can pass any legal
Called when the element is adopted to a document.
Called when one of the element's
name of the observed attribute
previous value of the attribute. null if it was nonexistent
current value of the attribute. null if removed.
Lifecycle callback that reacts to changes in the GraphQL document
Increments and returns the most recent mutation id.
Get a GraphQL DocumentNode from the element's GraphQL script child
Gets operation variables from the element's JSON script child
Returns true when an ID matches the most recent mutation id.
This resolves a single mutation according to the options specified and returns a Promise which is either resolved with the resulting data or rejected with an error.
Callback for when a mutation is completed.
Callback for when a mutation fails.
Lifecycle callback that reacts to changes in the operation variables