You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/subscriptions.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ class EntitiesSchema < GraphQL::Schema
88
88
end
89
89
```
90
90
91
-
These schemas can be composed as normal into a stitching client. The subscriptions schema must be locally-executable while other entity schema(s) may be served from anywhere:
91
+
These schemas can be composed as normal into a stitching client. The subscriptions schema must be locally-executable while the other entity schema(s) may be served from anywhere:
Once you've stitched a schema with subscriptions, it gets called as part of three workflows:
107
+
Once you've composed a schema with subscriptions, it gets called as part of three workflows:
108
108
109
109
1. Controller - handles normal query and mutation requests recieved via HTTP.
110
110
2. Channel - handles subscription-create requests recieved through a socket connection.
@@ -172,7 +172,7 @@ class GraphqlChannel < ApplicationCable::Channel
172
172
end
173
173
```
174
174
175
-
What happens behind the scenes here is that stitching filters the `execute` request down to just subscription selections, and passes those through to the subscriptions subschema where they register an event binding. The subscriber response gets stitched while passing back up through the stitching client.
175
+
What happens behind the scenes here is that stitching filters the `execute` request down to just subscription selections, and passes those through to the subscriptions subschema where they register an event binding. The subscriber response gets stitched while passing back out through the stitching client.
176
176
177
177
#### Plugin
178
178
@@ -181,9 +181,9 @@ Lastly, update events trigger with the filtered subscriptions selection, so must
0 commit comments