Search⌘ K

Creating with Mutations

Explore how to create data in React applications by using GraphQL mutations. Learn to send mutation operations to your server, manage arguments, and handle form submissions that add new data with Apollo Client, enhancing your ability to manage state and server updates.

We'll cover the following...

GraphQL mutations 

Mutations are GraphQL operations that usually take some arguments and then perform some changes to data. Here is an example mutation that will create a book:

mutation createBook($title: String!) {
createBook(title: $title) {
id
title
}
}
A mutation that creates a book

If we ...