Skip to content

Commit 3556851

Browse files
committed
rename FieldPlan to ExecutionPlan
1 parent 4571da9 commit 3556851

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

spec/Section 6 -- Execution.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ serial):
331331
- If {serial} is not provided, initialize it to {false}.
332332
- Let {groupedFieldSet} and {newDeferUsages} be the result of
333333
{CollectFields(objectType, selectionSet, variableValues)}.
334-
- Let {fieldPlan} be the result of {BuildFieldPlan(groupedFieldSet)}.
334+
- Let {executionPlan} be the result of {BuildExecutionPlan(groupedFieldSet)}.
335335
- Let {data} and {incrementalDataRecords} be the result of
336-
{ExecuteFieldPlan(newDeferUsages, fieldPlan, objectType, initialValue,
336+
{ExecuteExecutionPlan(newDeferUsages, executionPlan, objectType, initialValue,
337337
variableValues, serial)}.
338338
- Let {errors} be the list of all _field error_ raised while completing {data}.
339339
- If {incrementalDataRecords} is empty, return an unordered map containing
@@ -490,20 +490,20 @@ BatchIncrementalResults(incrementalResults):
490490
of {hasNext} on the final item in the list.
491491
- Yield {batchedIncrementalResult}.
492492

493-
## Executing a Field Plan
493+
## Executing an Execution Plan
494494

495-
To execute a field plan, the object value being evaluated and the object type
496-
need to be known, as well as whether the non-deferred grouped field set must be
497-
executed serially, or may be executed in parallel.
495+
To execute a execution plan, the object value being evaluated and the object
496+
type need to be known, as well as whether the non-deferred grouped field set
497+
must be executed serially, or may be executed in parallel.
498498

499-
ExecuteFieldPlan(newDeferUsages, fieldPlan, objectType, objectValue,
499+
ExecuteExecutionPlan(newDeferUsages, executionPlan, objectType, objectValue,
500500
variableValues, serial, path, deferUsageSet, deferMap):
501501

502502
- If {path} is not provided, initialize it to an empty list.
503503
- Let {newDeferMap} be the result of {GetNewDeferMap(newDeferUsages, path,
504504
deferMap)}.
505505
- Let {groupedFieldSet} and {newGroupedFieldSets} be the corresponding entries
506-
on {fieldPlan}.
506+
on {executionPlan}.
507507
- Allowing for parallelization, perform the following steps:
508508
- Let {data} and {nestedIncrementalDataRecords} be the result of running
509509
{ExecuteGroupedFieldSet(groupedFieldSet, objectType, objectValue,
@@ -749,7 +749,7 @@ Defer Usages contain the following information:
749749
enclosing this `@defer` directive, if any, otherwise {undefined}.
750750

751751
The {parentDeferUsage} entry is used to build distinct Execution Groups as
752-
discussed within the Field Plan Generation section below.
752+
discussed within the Execution Plan Generation section below.
753753

754754
Field Details Records are unordered maps containing the following entries:
755755

@@ -878,14 +878,14 @@ Note: When completing a List field, the {CollectFields} algorithm is invoked
878878
with the same arguments for each element of the list. GraphQL Services may
879879
choose to memoize their implementations of {CollectFields}.
880880

881-
### Field Plan Generation
881+
### Execution Plan Generation
882882

883-
BuildFieldPlan(originalGroupedFieldSet, parentDeferUsages):
883+
BuildExecutionPlan(originalGroupedFieldSet, parentDeferUsages):
884884

885885
- If {parentDeferUsages} is not provided, initialize it to the empty set.
886886
- Initialize {groupedFieldSet} to an empty ordered map.
887887
- Initialize {newGroupedFieldSets} to an empty unordered map.
888-
- Let {fieldPlan} be an unordered map containing {groupedFieldSet} and
888+
- Let {executionPlan} be an unordered map containing {groupedFieldSet} and
889889
{newGroupedFieldSets}.
890890
- For each {responseKey} and {groupForResponseKey} of {groupedFieldSet}:
891891
- Let {filteredDeferUsageSet} be the result of
@@ -899,7 +899,7 @@ BuildFieldPlan(originalGroupedFieldSet, parentDeferUsages):
899899
empty ordered map.
900900
- Set the entry for {responseKey} in {newGroupedFieldSet} to
901901
{groupForResponseKey}.
902-
- Return {fieldPlan}.
902+
- Return {executionPlan}.
903903

904904
GetFilteredDeferUsageSet(fieldDetailsList):
905905

@@ -1051,9 +1051,9 @@ deferUsageSet, deferMap):
10511051
- Let {objectType} be {ResolveAbstractType(fieldType, result)}.
10521052
- Let {groupedFieldSet} and {newDeferUsages} be the result of calling
10531053
{CollectSubfields(objectType, fieldDetailsList, variableValues)}.
1054-
- Let {fieldPlan} be the result of {BuildFieldPlan(groupedFieldSet,
1054+
- Let {executionPlan} be the result of {BuildExecutionPlan(groupedFieldSet,
10551055
deferUsageSet)}.
1056-
- Return the result of {ExecuteFieldPlan(newDeferUsages, fieldPlan,
1056+
- Return the result of {ExecuteExecutionPlan(newDeferUsages, executionPlan,
10571057
objectType, result, variableValues, false, path, deferUsageSet, deferMap)}.
10581058

10591059
CompleteListValue(innerType, fieldDetailsList, result, variableValues, path,

0 commit comments

Comments
 (0)