Skip to content
masterclass Buddy

GraphQL · Hook

useMutation

GraphQL mutations let a client request changes to server-side data. In a compliant schema, only top-level mutation fields may cause side effects.

Last updated

Syntax

mutation Name($variable: Type!) { field(argument: $variable) { selectedField } }

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Schemas and Types
  • Queries
  • Subscriptions

Source: Mutations | GraphQL. Checked 2026-11-03.