GraphQL Mutations: Changing Data
Move beyond reading data: learn to define and implement GraphQL mutations to create, update, and delete data in Spring Boot.
From Reading to Writing
You can now define types, resolvers, and run queries. But real APIs must also change data.
In GraphQL, every write goes through a mutation — the counterpart to a query.
Query vs Mutation
The shapes look similar, but intent differs:
- Query: read data, no side effects, may run in parallel.
- Mutation: change data, executed sequentially top to bottom.
All lessons in this course
- Defining Custom Data Types
- Implementing Data Resolvers
- Executing Simple GraphQL Queries
- GraphQL Mutations: Changing Data