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