Mutation
Noun · Development
Definitions
In GraphQL, an operation type that performs a write or side effect on the server — creating, updating, or deleting data — as opposed to a query, which only reads. More broadly, any in-place modification of a data structure's state.
In plain English: A request that changes data on the server, like adding or editing a record, as opposed to just reading it.
Example: "The `createUser` mutation returns the new user object so the client can update the cache without a refetch."