Skip to content

Commit c967b2f

Browse files
committed
small fixes (#3)
* add comma * remove unused parameter
1 parent 9fd1e3c commit c967b2f

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

spec/Section 6 -- Execution.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ subsequentPayloads, asyncRecord):
428428
- If {path} is not provided, initialize it to an empty list.
429429
- If {subsequentPayloads} is not provided, initialize it to the empty set.
430430
- Let {groupedFieldSet} and {deferredGroupedFieldsList} be the result of
431-
{CollectFields(objectType, objectValue, selectionSet, variableValues, path,
432-
asyncRecord)}.
431+
{CollectFields(objectType, selectionSet, variableValues, path, asyncRecord)}.
433432
- Initialize {resultMap} to an empty ordered map.
434433
- For each {groupedFieldSet} as {responseKey} and {fields}:
435434
- Let {fieldName} be the name of the first entry in {fields}. Note: This value
@@ -661,8 +660,8 @@ The depth-first-search order of the field groups produced by {CollectFields()}
661660
is maintained through execution, ensuring that fields appear in the executed
662661
response in a stable and predictable order.
663662

664-
CollectFields(objectType, objectValue, selectionSet, variableValues, path,
665-
asyncRecord, visitedFragments, deferredGroupedFieldsList):
663+
CollectFields(objectType, selectionSet, variableValues, path, asyncRecord,
664+
visitedFragments, deferredGroupedFieldsList):
666665

667666
- If {visitedFragments} is not provided, initialize it to the empty set.
668667
- Initialize {groupedFields} to an empty ordered map of lists.
@@ -707,16 +706,14 @@ asyncRecord, visitedFragments, deferredGroupedFieldsList):
707706
- Let {label} be the value or the variable to {deferDirective}'s {label}
708707
argument.
709708
- Let {deferredGroupedFields} be the result of calling
710-
{CollectFields(objectType, objectValue, fragmentSelectionSet,
711-
variableValues, path, asyncRecord, visitedFragments,
712-
deferredGroupedFieldsList)}.
709+
{CollectFields(objectType, fragmentSelectionSet, variableValues, path,
710+
asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
713711
- Append a record containing {label} and {deferredGroupedFields} to
714712
{deferredGroupedFieldsList}.
715713
- Continue with the next {selection} in {selectionSet}.
716714
- Let {fragmentGroupedFieldSet} be the result of calling
717-
{CollectFields(objectType, objectValue, fragmentSelectionSet,
718-
variableValues, path, asyncRecord, visitedFragments,
719-
deferredGroupedFieldsList)}.
715+
{CollectFields(objectType, fragmentSelectionSet, variableValues, path,
716+
asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
720717
- For each {fragmentGroup} in {fragmentGroupedFieldSet}:
721718
- Let {responseKey} be the response key shared by all fields in
722719
{fragmentGroup}.
@@ -737,16 +734,14 @@ asyncRecord, visitedFragments, deferredGroupedFieldsList):
737734
- Let {label} be the value or the variable to {deferDirective}'s {label}
738735
argument.
739736
- Let {deferredGroupedFields} be the result of calling
740-
{CollectFields(objectType, objectValue, fragmentSelectionSet,
741-
variableValues, path, asyncRecord, visitedFragments,
742-
deferredGroupedFieldsList)}.
737+
{CollectFields(objectType, fragmentSelectionSet, variableValues, path,
738+
asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
743739
- Append a record containing {label} and {deferredGroupedFields} to
744740
{deferredGroupedFieldsList}.
745741
- Continue with the next {selection} in {selectionSet}.
746742
- Let {fragmentGroupedFieldSet} be the result of calling
747-
{CollectFields(objectType, objectValue, fragmentSelectionSet,
748-
variableValues, path, asyncRecord, visitedFragments,
749-
deferredGroupedFieldsList)}.
743+
{CollectFields(objectType, fragmentSelectionSet, variableValues, path,
744+
asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
750745
- For each {fragmentGroup} in {fragmentGroupedFieldSet}:
751746
- Let {responseKey} be the response key shared by all fields in
752747
{fragmentGroup}.
@@ -964,8 +959,8 @@ directive.
964959

965960
#### Execute Stream Field
966961

967-
ExecuteStreamField(label, iterator, index, fields, innerType, path streamRecord,
968-
variableValues, subsequentPayloads):
962+
ExecuteStreamField(label, iterator, index, fields, innerType, path,
963+
streamRecord, variableValues, subsequentPayloads):
969964

970965
- Let {streamRecord} be an async payload record created from {label}, {path},
971966
and {iterator}.

0 commit comments

Comments
 (0)