Mutation component uses scoped slots to provide the mutation state to the slot template.
The Mutation component is renderless by default, meaning it will not render any extra HTML other than its slot.
Mutation component accepts the following props:
|query||Yes||The query to be executed|
Mutation component exposes a single
default slot with the following properties:
|data||The GraphQL query result's |
|error||Any errors encountered during query execution|
|execute||Executes the query and returns the operation result containing |
|isDone||Set to true when the query is executed at least once, never resets to |
|isFetching||Set to true when the query is executing either by calling |
Mutation component does not emit any events at the moment