Skip to content

Commit

Permalink
properly initialize deferUsages with their parents
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jul 18, 2024
1 parent 4b86250 commit db54ad8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,11 @@ visitedFragments):
- If {DoesFragmentTypeApply(objectType, fragmentType)} is {false}, continue
with the next {selection} in {selectionSet}.
- Let {fragmentSelectionSet} be the top-level selection set of {fragment}.
- If {deferDirective} is defined, let {fragmentDeferUsage} be
{deferDirective} and append it to {newDeferUsages}.
- If {deferDirective} is defined:
- Let {path} be the corresponding entry on {deferDirective}.
- Let {parentDeferUsage} be {deferUsage}.
- Let {fragmentDeferUsage} be an unordered map containing {path} and
{parentDeferUsage}.
- Otherwise, let {fragmentDeferUsage} be {deferUsage}.
- Let {fragmentGroupedFieldSet} and {fragmentNewDeferUsages} be the result
of calling {CollectFields(objectType, fragmentSelectionSet,
Expand All @@ -592,8 +595,11 @@ visitedFragments):
- Let {deferDirective} be that directive.
- If this execution is for a subscription operation, raise a _field
error_.
- If {deferDirective} is defined, let {fragmentDeferUsage} be
{deferDirective} and append it to {newDeferUsages}.
- If {deferDirective} is defined:
- Let {path} be the corresponding entry on {deferDirective}.
- Let {parentDeferUsage} be {deferUsage}.
- Let {fragmentDeferUsage} be an unordered map containing {path} and
{parentDeferUsage}.
- Otherwise, let {fragmentDeferUsage} be {deferUsage}.
- Let {fragmentGroupedFieldSet} and {fragmentNewDeferUsages} be the result
of calling {CollectFields(objectType, fragmentSelectionSet,
Expand Down

0 comments on commit db54ad8

Please sign in to comment.