Skip to content

Commit de56b68

Browse files
committed
fixup map iterations
1 parent 301a81b commit de56b68

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

spec/Section 5 -- Validation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ CollectSubscriptionFields(objectType, selectionSet, visitedFragments):
338338
- Let {fragmentCollectedFieldMap} be the result of calling
339339
{CollectSubscriptionFields(objectType, fragmentSelectionSet,
340340
visitedFragments)}.
341-
- For each {fragmentCollectedFieldMap} as {responseName} and
342-
{fragmentFields}:
341+
- For each {responseName} and {fragmentFields} in
342+
{fragmentCollectedFieldMap}:
343343
- Let {fieldsForResponseKey} be the _field set_ value in
344344
{collectedFieldsMap} for the key {responseName}; otherwise create the
345345
entry with an empty ordered set.
@@ -353,8 +353,8 @@ CollectSubscriptionFields(objectType, selectionSet, visitedFragments):
353353
- Let {fragmentCollectedFieldMap} be the result of calling
354354
{CollectSubscriptionFields(objectType, fragmentSelectionSet,
355355
visitedFragments)}.
356-
- For each {fragmentCollectedFieldMap} as {responseName} and
357-
{fragmentFields}:
356+
- For each {responseName} and {fragmentFields} in
357+
{fragmentCollectedFieldMap}:
358358
- Let {fieldsForResponseKey} be the _field set_ value in
359359
{collectedFieldsMap} for the key {responseName}; otherwise create the
360360
entry with an empty ordered set.

spec/Section 6 -- Execution.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ CollectFields(objectType, selectionSet, variableValues, visitedFragments):
468468
- Let {fragmentCollectedFieldMap} be the result of calling
469469
{CollectFields(objectType, fragmentSelectionSet, variableValues,
470470
visitedFragments)}.
471-
- For each {fragmentCollectedFieldMap} as {responseName} and
472-
{fragmentFields}:
471+
- For each {responseName} and {fragmentFields} in
472+
{fragmentCollectedFieldMap}:
473473
- Let {fieldsForResponseName} be the _field set_ value in
474474
{collectedFieldsMap} for the key {responseName}; otherwise create the
475475
entry with an empty ordered set.
@@ -483,8 +483,8 @@ CollectFields(objectType, selectionSet, variableValues, visitedFragments):
483483
- Let {fragmentCollectedFieldMap} be the result of calling
484484
{CollectFields(objectType, fragmentSelectionSet, variableValues,
485485
visitedFragments)}.
486-
- For each {fragmentCollectedFieldMap} as {responseName} and
487-
{fragmentFields}:
486+
- For each {responseName} and {fragmentFields} in
487+
{fragmentCollectedFieldMap}:
488488
- Let {fieldsForResponseName} be the _field set_ value in
489489
{collectedFieldsMap} for the key {responseName}; otherwise create the
490490
entry with an empty ordered set.
@@ -546,10 +546,10 @@ CollectSubfields(objectType, fields, variableValues):
546546
- If {fieldSelectionSet} is null or empty, continue to the next field.
547547
- Let {fieldCollectedFieldMap} be the result of {CollectFields(objectType,
548548
fieldSelectionSet, variableValues)}.
549-
- For each {fieldCollectedFieldMap} as {responseName} and {subfields}:
549+
- For each {responseName} and {subfields} in {fieldCollectedFieldMap}:
550550
- 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.
553553
- Add each fields from {subfields} to {fieldsForResponseName}.
554554
- Return {collectedFieldsMap}.
555555

@@ -573,7 +573,7 @@ ExecuteCollectedFields(collectedFieldsMap, objectType, objectValue,
573573
variableValues):
574574

575575
- Initialize {resultMap} to an empty ordered map.
576-
- For each {collectedFieldsMap} as {responseName} and {fields}:
576+
- For each {responseName} and {fields} in {collectedFieldsMap}:
577577
- Let {fieldName} be the name of the first entry in {fields}. Note: This value
578578
is unaffected if an alias is used.
579579
- Let {fieldType} be the return type defined for the field {fieldName} of

0 commit comments

Comments
 (0)