Class: Mutation

Mutation#Mutation(typeBundle, nameopt, variablesopt, selectionSetCallback)

new Mutation(typeBundle, nameopt, variablesopt, selectionSetCallback)

This constructor should not be invoked directly. Use the factory functions Client#mutation or Document#addMutation to create a Mutation.

Parameters:
Name Type Attributes Description
typeBundle Object

A set of ES6 modules generated by graphql-js-schema.

name String <optional>

A name for the mutation.

variables Array.<Object> <optional>

A list of variables in the mutation. See Client#variable.

selectionSetCallback function

The mutation builder callback. A SelectionSet is created using this callback.

Source: