Company
Date Published
Author
Sashko Stubailo
Word count
2528
Language
English
Hacker News points
None

Summary

The new RFC process for making improvements to the GraphQL specification is introducing GraphQL subscriptions, a way to add realtime data streaming to your GraphQL API. Subscriptions are represented by a field on the Subscription type in your GraphQL schema and allow clients to receive updates about specific events or changes to data. The proposal includes examples of how subscriptions can be used, such as for commenting systems and webhooks, and discusses the differences between subscriptions and live queries. The specification will not include operational concerns like transport mechanisms, server-side messaging systems, or scalability, but rather focus on the syntax involved and high-level algorithms. The process is open to feedback and discussion with maintainers of popular GraphQL libraries, and wider discussion considering diverse viewpoints from GraphQL users and library authors is encouraged. Experimentation and implementation are also important parts of the RFC process, allowing for hands-on experimentation and practical feedback on the proposed design.