I am trying to implement GraphQL Subscriptions using ActionCable with graphql-ruby
gem.
I figured out from this link that GraphQL channel needs to be created to which clients needs to subscribe. Normally, in ActionCable, we will stream_from
required channel in the subscribed
action. But, the example in the link specifies a execute
method with parameter. When will this method be executed?
Also, the doc states See Apollo Client or Relay Modern
for client usage. Is it a must to use any one of these or can I use coffeescript to subscribe and update UI?