Understanding GraphQL Mutations
Grasp the concept of mutations, their role in data manipulation, and how they differ from queries.
What are GraphQL Mutations?
Welcome! In GraphQL, you interact with your data in two main ways: fetching it and changing it.
Mutations are the operations you use to modify data on your server. Think of them as the 'write' actions of your API.
Queries: Just for Reading
Before diving deep into mutations, let's quickly recall Queries.
- Queries are used to fetch data from your server.
- They are designed to be read-only operations.
- Running a query should never change any data on the backend. They are side-effect free.
All lessons in this course
- Understanding GraphQL Mutations
- Creating Data with Mutations
- Updating and Deleting Data
- Validating Mutation Input Arguments