How good are GraphQL subscriptions?


#1

And are they a reasonable substitute for Meteor’s live queries/reactivity? I haven’t followed recent developments in Apollo but they had a big release recently and GQL is also quite mature now. I know it won’t be as easy to use/seamless as Meteor, just wondering how well it works and if anyone is using it.


#2

I’m developing a Meteor+Apollo app, and subscriptions work well. It’s very straightforward:

  • You have a GraphQL resolver that talks to the database to mutate it.
  • That resolver fires off a message to pubsub that the mutation has occurred.
  • Any clients whose pubsub vars say they need to know about that particular mutation, receive a message that the mutation has happened.