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:

  • The Insert Todo mutation
  • Creating a GraphQL mutation
  • Using the useMutation hook
  • Capturing loading/finished/error states
  • Mapping types

Let's get started!