Update mutations and automatic cache updates

In this section, we will learn the following concepts:

  • Creating a GraphQL mutation
  • Using the useMutation hook
  • Optimistic updates
  • Automatic cache updates

Let's get started!