Skip to content

Commit 7f57e6d

Browse files
committed
refactor: pass through args to buildExecutionContext
1 parent 75286fe commit 7f57e6d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/execution/execute.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,27 +1106,9 @@ function mapSourceToResponse(
11061106
export function createSourceEventStream(
11071107
args: ExecutionArgs,
11081108
): PromiseOrValue<AsyncIterable<unknown> | ExecutionResult> {
1109-
const {
1110-
schema,
1111-
document,
1112-
rootValue,
1113-
contextValue,
1114-
variableValues,
1115-
operationName,
1116-
subscribeFieldResolver,
1117-
} = args;
1118-
11191109
// If a valid execution context cannot be created due to incorrect arguments,
11201110
// a "Response" with only errors is returned.
1121-
const exeContext = buildExecutionContext({
1122-
schema,
1123-
document,
1124-
rootValue,
1125-
contextValue,
1126-
variableValues,
1127-
operationName,
1128-
subscribeFieldResolver,
1129-
});
1111+
const exeContext = buildExecutionContext(args);
11301112

11311113
// Return early errors if execution context failed.
11321114
if (!('schema' in exeContext)) {

0 commit comments

Comments
 (0)