Skip to content

Commit bc5618c

Browse files
committed
Slight tweaks for subscriptions
1 parent 94241a7 commit bc5618c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

spec/Section 6 -- Execution.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ provide a query root operation type. If mutations or subscriptions are
152152
supported, it must also provide a mutation or subscription root operation type,
153153
respectively.
154154

155-
:: We define _operation execution_ as the process of producing output data from
156-
from a GraphQL operation; thus operation execution begins when the execution
157-
algorithm for that operation type is called: {ExecuteQuery()} for query
158-
operations, {ExecuteMutation()} for mutation operations, and {Subscribe()} for
159-
subscription operations.
155+
:: The result of a GraphQL request is produced through _operation execution_.
156+
Operation execution begins when the execution algorithm for the operation type
157+
is invoked: {ExecuteQuery()} for query operations, {ExecuteMutation()} for
158+
mutation operations, and {Subscribe()} for subscription operations.
160159

161160
### Query
162161

@@ -197,10 +196,10 @@ ExecuteMutation(mutation, schema, variableValues, initialValue):
197196
If the operation is a subscription, the result is an _event stream_ called the
198197
_response stream_ where each event in the event stream is the result of
199198
executing the operation’s _root selection set_ for each new event on an
200-
underlying _source stream_.
199+
underlying _source stream_ established during {ExecuteRequest()}.
201200

202201
Executing a subscription operation creates a persistent function on the service
203-
that maps an underlying _source stream_ to a returned _response stream_.
202+
that maps this underlying _source stream_ to a returned _response stream_.
204203

205204
Subscribe(sourceStream, subscription, schema, variableValues):
206205

0 commit comments

Comments
 (0)