liveBook · Manning

GraphQL mutation

A GraphQL mutation is an operation that requests a change to server-side data or state and may return selected fields resulting from that change.

How 2 Manning books explain it

Quarkus in Action

A GraphQL mutation is a GraphQL operation that can add or modify data and may return data with the update.

How it is used
Uses mutations to add or modify data while returning selected fields from the resulting object.
How deep it goes
Defines operation semantics and demonstrates input, field selection, response echoing, and database verification without covering advanced GraphQL features.
Examples
Demonstrates a register mutation that creates a fleet car, echoes selected fields, and verifies persistence with a cars query.
What you can do after
Apply it via GraphiQL by supplying mutation arguments, selecting response fields, executing the operation, and checking the resulting data.

Read how Quarkus in Action explains GraphQL mutation →

Building Web APIs with ASP.NET Core

A GraphQL mutation is an operation that requests a state-changing action from a GraphQL server and can return selected resulting fields.

How it is used
Uses a state-changing operation to update a board game's name through a GraphQL API.
How deep it goes
Walks through token setup, mutation execution, and database verification, but does not detail server-side mutation implementation.
Examples
Demonstrates renaming Die Macher and assigning a revised name to Axis & Allies.
What you can do after
Operate/configure BananaCakePop to authorize and execute a mutation, then verify the saved change with a query.

Read how Building Web APIs with ASP.NET Core explains GraphQL mutation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.