@@ -351,13 +351,14 @@ Unsubscribe(responseStream):
351
351
The process of executing a GraphQL operation is to recursively execute every
352
352
selected field in the operation. To do this, first all initially selected fields
353
353
from the operation's top most _ root selection set_ are collected, then each
354
- executed, then of those all subfields are collected, then each executed. This
355
- process continues until there are no more subfields to collect and execute.
354
+ executed. As each field completes, all its subfields are collected, then each
355
+ executed. This process continues until there are no more subfields to collect
356
+ and execute.
356
357
357
358
### Executing the Root Selection Set
358
359
359
360
:: A _ root selection set_ is the top level _ selection set_ provided by a GraphQL
360
- operation. A root selection set always selects from a root type .
361
+ operation. A root selection set always selects from a _ root operation type _ .
361
362
362
363
To execute the root selection set, the initial value being evaluated and the
363
364
root type must be known, as well as whether it must be executed serially, or may
@@ -378,7 +379,7 @@ executionMode):
378
379
selectionSet, variableValues)}.
379
380
- Let {data} be the result of running {ExecuteGroupedFieldSet(groupedFieldSet,
380
381
objectType, initialValue, variableValues)} _ serially_ if {executionMode} is
381
- {"serial"}, otherwise _ normally_ ).
382
+ {"serial"}, otherwise _ normally_ (allowing parallelization) ).
382
383
- Let {errors} be the list of all _ execution error_ raised while executing the
383
384
selection set.
384
385
- Return an unordered map containing {data} and {errors}.
@@ -494,10 +495,10 @@ directives may be applied in either order since they apply commutatively.
494
495
495
496
** Merging Selection Sets**
496
497
497
- When more than one field of the same name is executed in parallel, during value
498
- completion each related _ selection set _ is collected together to produce a
499
- single _ grouped field set_ in order to continue execution of the sub-selection
500
- sets.
498
+ When a field is executed, during value completion the _ selection set _ of each of
499
+ the related field selections with the same response name are collected together
500
+ to produce a single _ grouped field set_ in order to continue execution of the
501
+ sub-selection sets.
501
502
502
503
An example operation illustrating parallel fields with the same name with
503
504
sub-selections.
0 commit comments