Skip to content

Commit 180a51c

Browse files
authored
Apply suggestions from code review
1 parent d68df95 commit 180a51c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

spec/Section 6 -- Execution.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,14 @@ Unsubscribe(responseStream):
351351
The process of executing a GraphQL operation is to recursively execute every
352352
selected field in the operation. To do this, first all initially selected fields
353353
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.
356357

357358
### Executing the Root Selection Set
358359

359360
:: 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_.
361362

362363
To execute the root selection set, the initial value being evaluated and the
363364
root type must be known, as well as whether it must be executed serially, or may
@@ -378,7 +379,7 @@ executionMode):
378379
selectionSet, variableValues)}.
379380
- Let {data} be the result of running {ExecuteGroupedFieldSet(groupedFieldSet,
380381
objectType, initialValue, variableValues)} _serially_ if {executionMode} is
381-
{"serial"}, otherwise _normally_).
382+
{"serial"}, otherwise _normally_ (allowing parallelization)).
382383
- Let {errors} be the list of all _execution error_ raised while executing the
383384
selection set.
384385
- Return an unordered map containing {data} and {errors}.
@@ -494,10 +495,10 @@ directives may be applied in either order since they apply commutatively.
494495

495496
**Merging Selection Sets**
496497

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.
501502

502503
An example operation illustrating parallel fields with the same name with
503504
sub-selections.

0 commit comments

Comments
 (0)