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