@@ -415,7 +415,7 @@ subsequentPayloads, asyncRecord):
415415- If {path} is not provided, initialize it to an empty list.
416416- If {subsequentPayloads} is not provided, initialize it to the empty set.
417417- Let {groupedFieldSet} and {deferredGroupedFieldsList} be the result of
418- {CollectFields(objectType, selectionSet, variableValues, path, asyncRecord )}.
418+ {CollectFields(objectType, selectionSet, variableValues)}.
419419- Initialize {resultMap} to an empty ordered map.
420420- For each {groupedFieldSet} as {responseKey} and {fields}:
421421 - Let {fieldName} be the name of the first entry in {fields}. Note: This value
@@ -647,8 +647,8 @@ The depth-first-search order of the field groups produced by {CollectFields()}
647647is maintained through execution, ensuring that fields appear in the executed
648648response in a stable and predictable order.
649649
650- CollectFields(objectType, selectionSet, variableValues, path, asyncRecord ,
651- visitedFragments, deferredGroupedFieldsList):
650+ CollectFields(objectType, selectionSet, variableValues, visitedFragments ,
651+ deferredGroupedFieldsList):
652652
653653- If {visitedFragments} is not provided, initialize it to the empty set.
654654- Initialize {groupedFields} to an empty ordered map of lists.
@@ -695,14 +695,14 @@ visitedFragments, deferredGroupedFieldsList):
695695 - Let {label} be the value or the variable to {deferDirective}'s {label}
696696 argument.
697697 - Let {deferredGroupedFields} be the result of calling
698- {CollectFields(objectType, fragmentSelectionSet, variableValues, path,
699- asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
698+ {CollectFields(objectType, fragmentSelectionSet, variableValues,
699+ visitedFragments, deferredGroupedFieldsList)}.
700700 - Append a record containing {label} and {deferredGroupedFields} to
701701 {deferredGroupedFieldsList}.
702702 - Continue with the next {selection} in {selectionSet}.
703703 - Let {fragmentGroupedFieldSet} be the result of calling
704- {CollectFields(objectType, fragmentSelectionSet, variableValues, path,
705- asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
704+ {CollectFields(objectType, fragmentSelectionSet, variableValues,
705+ visitedFragments, deferredGroupedFieldsList)}.
706706 - For each {fragmentGroup} in {fragmentGroupedFieldSet}:
707707 - Let {responseKey} be the response key shared by all fields in
708708 {fragmentGroup}.
@@ -725,21 +725,21 @@ visitedFragments, deferredGroupedFieldsList):
725725 - Let {label} be the value or the variable to {deferDirective}'s {label}
726726 argument.
727727 - Let {deferredGroupedFields} be the result of calling
728- {CollectFields(objectType, fragmentSelectionSet, variableValues, path,
729- asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
728+ {CollectFields(objectType, fragmentSelectionSet, variableValues,
729+ visitedFragments, deferredGroupedFieldsList)}.
730730 - Append a record containing {label} and {deferredGroupedFields} to
731731 {deferredGroupedFieldsList}.
732732 - Continue with the next {selection} in {selectionSet}.
733733 - Let {fragmentGroupedFieldSet} be the result of calling
734- {CollectFields(objectType, fragmentSelectionSet, variableValues, path,
735- asyncRecord, visitedFragments, deferredGroupedFieldsList)}.
734+ {CollectFields(objectType, fragmentSelectionSet, variableValues,
735+ visitedFragments, deferredGroupedFieldsList)}.
736736 - For each {fragmentGroup} in {fragmentGroupedFieldSet}:
737737 - Let {responseKey} be the response key shared by all fields in
738738 {fragmentGroup}.
739739 - Let {groupForResponseKey} be the list in {groupedFields} for
740740 {responseKey}; if no such list exists, create it as an empty list.
741741 - Append all items in {fragmentGroup} to {groupForResponseKey}.
742- - Return {groupedFields} and {deferredGroupedFieldsList }.
742+ - Return {groupedFields}, {deferredGroupedFieldsList} and {visitedFragments }.
743743
744744Note: The steps in {CollectFields()} evaluating the ` @skip ` and ` @include `
745745directives may be applied in either order since they apply commutatively.
0 commit comments