@@ -570,8 +570,11 @@ visitedFragments):
570
570
- If {DoesFragmentTypeApply(objectType, fragmentType)} is {false}, continue
571
571
with the next {selection} in {selectionSet}.
572
572
- Let {fragmentSelectionSet} be the top-level selection set of {fragment}.
573
- - If {deferDirective} is defined, let {fragmentDeferUsage} be
574
- {deferDirective} and append it to {newDeferUsages}.
573
+ - If {deferDirective} is defined:
574
+ - Let {path} be the corresponding entry on {deferDirective}.
575
+ - Let {parentDeferUsage} be {deferUsage}.
576
+ - Let {fragmentDeferUsage} be an unordered map containing {path} and
577
+ {parentDeferUsage}.
575
578
- Otherwise, let {fragmentDeferUsage} be {deferUsage}.
576
579
- Let {fragmentGroupedFieldSet} and {fragmentNewDeferUsages} be the result
577
580
of calling {CollectFields(objectType, fragmentSelectionSet,
@@ -595,8 +598,11 @@ visitedFragments):
595
598
- Let {deferDirective} be that directive.
596
599
- If this execution is for a subscription operation, raise a _ field
597
600
error_ .
598
- - If {deferDirective} is defined, let {fragmentDeferUsage} be
599
- {deferDirective} and append it to {newDeferUsages}.
601
+ - If {deferDirective} is defined:
602
+ - Let {path} be the corresponding entry on {deferDirective}.
603
+ - Let {parentDeferUsage} be {deferUsage}.
604
+ - Let {fragmentDeferUsage} be an unordered map containing {path} and
605
+ {parentDeferUsage}.
600
606
- Otherwise, let {fragmentDeferUsage} be {deferUsage}.
601
607
- Let {fragmentGroupedFieldSet} and {fragmentNewDeferUsages} be the result
602
608
of calling {CollectFields(objectType, fragmentSelectionSet,
0 commit comments