GraphQL · Hook
useSubscription
GraphQL subscriptions are long-lived operations for receiving real-time updates from server events. Clients declare an event field and select the data they want to receive.
Last updated
Syntax
subscription OperationName { eventField { selectedField } }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
QueriesMutationsSchemas and TypesExecutionResponse