Skip to content

Commit

Permalink
reorder args to leave off undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Aug 26, 2024
1 parent 9e3255e commit 692ebaa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,8 @@ function executeOperation(
exeContext,
rootType,
rootValue,
undefined,
newDeferUsages,
buildExecutionPlan(groupedFieldSet),
undefined,
undefined,
);

if (isPromise(graphqlWrappedResult)) {
Expand All @@ -327,11 +324,11 @@ function executeExecutionPlan(
exeContext: ExecutionContext,
returnType: GraphQLObjectType,
sourceValue: unknown,
path: Path | undefined,
newDeferUsages: ReadonlyArray<DeferUsage>,
executionPlan: ExecutionPlan,
incrementalContext: IncrementalContext | undefined,
deferMap: ReadonlyMap<DeferUsage, DeferredFragmentRecord> | undefined,
path?: Path | undefined,
incrementalContext?: IncrementalContext | undefined,
deferMap?: ReadonlyMap<DeferUsage, DeferredFragmentRecord> | undefined,
): PromiseOrValue<GraphQLWrappedResult<ObjMap<unknown>>> {
const newDeferMap = getNewDeferMap(newDeferUsages, deferMap, path);

Expand Down Expand Up @@ -1752,12 +1749,12 @@ function collectAndExecuteSubfields(
exeContext,
returnType,
result,
path,
newDeferUsages,
buildSubExecutionPlan(
groupedFieldSet,
incrementalContext?.deferUsageSet,
),
path,
incrementalContext,
deferMap,
);
Expand Down

0 comments on commit 692ebaa

Please sign in to comment.