Create a GraphQL Mutation in GraphiQL

Share this video with your friends

Send Tweet

Now we need to actually update our data. This is done in Graphql with "mutations". In this lesson, we design a mutation in GraphiQL.

Make sure to wrap your mutation in mutation() {}. You will also pass your variables as arguments to mutation and declare their type before you can use them in your mutations.