Mutations & Query variables
Now, let's add the ability for our users to create new todos and add them to their task list.
We will learn the following concepts:
- Creating a GraphQL mutation
- Using the
useMutation
React hook - Capturing loading/finished/error states
Let's get started!
Did you find this page helpful?
Start with GraphQL on Hasura for Free
Build apps and APIs 10x faster
Built-in authorization and caching
8x more performant than hand-rolled APIs
![Promo](https://cdn.statically.io/img/hasura.io/learn/graphql/react/static/hasura-free-ff60e409244e0ea12b5a3045d1a9096b.png)
![footer illustration](https://cdn.statically.io/img/graphql-engine-cdn.hasura.io/learn-hasura/assets/footer-img.png)