@@ -468,8 +468,8 @@ CollectFields(objectType, selectionSet, variableValues, visitedFragments):
468
468
- Let {fragmentCollectedFieldMap} be the result of calling
469
469
{CollectFields(objectType, fragmentSelectionSet, variableValues,
470
470
visitedFragments)}.
471
- - For each {fragmentCollectedFieldMap} as {responseName} and
472
- {fragmentFields }:
471
+ - For each {responseName} and {fragmentFields} in
472
+ {fragmentCollectedFieldMap }:
473
473
- Let {fieldsForResponseName} be the _ field set_ value in
474
474
{collectedFieldsMap} for the key {responseName}; otherwise create the
475
475
entry with an empty ordered set.
@@ -483,8 +483,8 @@ CollectFields(objectType, selectionSet, variableValues, visitedFragments):
483
483
- Let {fragmentCollectedFieldMap} be the result of calling
484
484
{CollectFields(objectType, fragmentSelectionSet, variableValues,
485
485
visitedFragments)}.
486
- - For each {fragmentCollectedFieldMap} as {responseName} and
487
- {fragmentFields }:
486
+ - For each {responseName} and {fragmentFields} in
487
+ {fragmentCollectedFieldMap }:
488
488
- Let {fieldsForResponseName} be the _ field set_ value in
489
489
{collectedFieldsMap} for the key {responseName}; otherwise create the
490
490
entry with an empty ordered set.
@@ -546,10 +546,10 @@ CollectSubfields(objectType, fields, variableValues):
546
546
- If {fieldSelectionSet} is null or empty, continue to the next field.
547
547
- Let {fieldCollectedFieldMap} be the result of {CollectFields(objectType,
548
548
fieldSelectionSet, variableValues)}.
549
- - For each {fieldCollectedFieldMap} as {responseName} and {subfields }:
549
+ - For each {responseName} and {subfields} in {fieldCollectedFieldMap }:
550
550
- Let {fieldsForResponseName} be the _ field set_ value in
551
- {collectedFieldsMap} for the key {responseName}; otherwise create it as an
552
- empty ordered set.
551
+ {collectedFieldsMap} for the key {responseName}; otherwise create the
552
+ entry with an empty ordered set.
553
553
- Add each fields from {subfields} to {fieldsForResponseName}.
554
554
- Return {collectedFieldsMap}.
555
555
@@ -573,7 +573,7 @@ ExecuteCollectedFields(collectedFieldsMap, objectType, objectValue,
573
573
variableValues):
574
574
575
575
- Initialize {resultMap} to an empty ordered map.
576
- - For each {collectedFieldsMap} as {responseName} and {fields }:
576
+ - For each {responseName} and {fields} in {collectedFieldsMap }:
577
577
- Let {fieldName} be the name of the first entry in {fields}. Note: This value
578
578
is unaffected if an alias is used.
579
579
- Let {fieldType} be the return type defined for the field {fieldName} of
0 commit comments