Course lesson
Create a GraphQL Mutation in GraphiQL
Now we need to actually update our data. This is done in Graphql with "mutations". In this lesson, we design a mutation in GraphiQL.
- Duration
- 2 min
- Access
- Included
- Transcript
- Retained from source evidence
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.