@@ -428,8 +428,7 @@ subsequentPayloads, asyncRecord):
428
428
- If {path} is not provided, initialize it to an empty list.
429
429
- If {subsequentPayloads} is not provided, initialize it to the empty set.
430
430
- Let {groupedFieldSet} and {deferredGroupedFieldsList} be the result of
431
- {CollectFields(objectType, objectValue, selectionSet, variableValues, path,
432
- asyncRecord)}.
431
+ {CollectFields(objectType, selectionSet, variableValues, path, asyncRecord)}.
433
432
- Initialize {resultMap} to an empty ordered map.
434
433
- For each {groupedFieldSet} as {responseKey} and {fields}:
435
434
- 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()}
661
660
is maintained through execution, ensuring that fields appear in the executed
662
661
response in a stable and predictable order.
663
662
664
- CollectFields(objectType, objectValue, selectionSet, variableValues, path,
665
- asyncRecord, visitedFragments, deferredGroupedFieldsList):
663
+ CollectFields(objectType, selectionSet, variableValues, path, asyncRecord ,
664
+ visitedFragments, deferredGroupedFieldsList):
666
665
667
666
- If {visitedFragments} is not provided, initialize it to the empty set.
668
667
- Initialize {groupedFields} to an empty ordered map of lists.
@@ -707,16 +706,14 @@ asyncRecord, visitedFragments, deferredGroupedFieldsList):
707
706
- Let {label} be the value or the variable to {deferDirective}'s {label}
708
707
argument.
709
708
- 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)}.
713
711
- Append a record containing {label} and {deferredGroupedFields} to
714
712
{deferredGroupedFieldsList}.
715
713
- Continue with the next {selection} in {selectionSet}.
716
714
- 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)}.
720
717
- For each {fragmentGroup} in {fragmentGroupedFieldSet}:
721
718
- Let {responseKey} be the response key shared by all fields in
722
719
{fragmentGroup}.
@@ -737,16 +734,14 @@ asyncRecord, visitedFragments, deferredGroupedFieldsList):
737
734
- Let {label} be the value or the variable to {deferDirective}'s {label}
738
735
argument.
739
736
- 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)}.
743
739
- Append a record containing {label} and {deferredGroupedFields} to
744
740
{deferredGroupedFieldsList}.
745
741
- Continue with the next {selection} in {selectionSet}.
746
742
- 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)}.
750
745
- For each {fragmentGroup} in {fragmentGroupedFieldSet}:
751
746
- Let {responseKey} be the response key shared by all fields in
752
747
{fragmentGroup}.
@@ -964,8 +959,8 @@ directive.
964
959
965
960
#### Execute Stream Field
966
961
967
- ExecuteStreamField(label, iterator, index, fields, innerType, path streamRecord ,
968
- variableValues, subsequentPayloads):
962
+ ExecuteStreamField(label, iterator, index, fields, innerType, path,
963
+ streamRecord, variableValues, subsequentPayloads):
969
964
970
965
- Let {streamRecord} be an async payload record created from {label}, {path},
971
966
and {iterator}.
0 commit comments