rmosolgo / graphql-ruby

Ruby implementation of GraphQL
http://graphql-ruby.org
MIT License
5.38k stars 1.39k forks source link

Support calls to write_subscription within resolve #5142

Open rmosolgo opened 4 weeks ago

rmosolgo commented 4 weeks ago

After this change, you can directly call #write_subscription from inside def subscribe to tell your subscription backend to register the current event. This is helpful for ensuring the right sequence of steps during subscribe and update.

Part of #5138

TODO