import Operation from './operation';
/**
* GraphQL Mutation class.
* @extends Operation
*/
export default class Mutation extends Operation {
/**
* This constructor should not be invoked directly.
* Use the factory functions {@link Client#mutation} or {@link Document#addMutation} to create a Mutation.
*
* @param {Object} typeBundle A set of ES6 modules generated by {@link https://github.com/Shopify/graphql-js-schema|graphql-js-schema}.
* @param {String} [name] A name for the mutation.
* @param {Object[]} [variables] A list of variables in the mutation. See {@link Client#variable}.
* @param {Function} selectionSetCallback The mutation builder callback.
* A {@link SelectionSet} is created using this callback.
*/
constructor(typeBundle, ...args) {
super(typeBundle, 'mutation', ...args);
}
}