Subscriptions
Introduction
A GraphQL subscription is essentially a query where the client receives an update whenever the value of any field changes upstream.
Subscriptions are supported for all kinds of queries. All the concepts of queries hold true for subscriptions as well.
One root field in a subscription
Hasura follows the GraphQL spec which allows for only one root field in a subscription.
Subscriptions are not currently supported for remote schemas.
Explore subscriptions
Additional Resources
- Learn how to use subscriptions with front-end applications - Learn Tutorials
- Build a full-stack application with Next.js - Learn Tutorials