Skip to content

Instantly share code, notes, and snippets.

@ale13jo
ale13jo / Event-stream based GraphQL subscriptions.md
Created July 24, 2019 16:27 — forked from OlegIlyenko/Event-stream based GraphQL subscriptions.md
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

Keybase proof

I hereby claim:

  • I am ale13jo on github.
  • I am ale13jo (https://keybase.io/ale13jo) on keybase.
  • I have a public key ASABI4YXBqsc-cRrmpguXiWG5cRgnBo5A-vliTiP6LVlywo

To claim this, I am signing this object: