Skip to content

Commit 571f2bc

Browse files
authored
Address review
1 parent 0195b30 commit 571f2bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/execution/execute.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function executeImpl(
217217
// field and its descendants will be omitted, and sibling fields will still
218218
// be executed. An execution which encounters errors will still result in a
219219
// resolved Promise.
220-
const data = executeOperation(exeContext, rootValue);
220+
const data = executeOperation(exeContext, context.operation, rootValue);
221221
return buildResponse(exeContext, data);
222222
}
223223

@@ -378,6 +378,7 @@ export function buildExecutionContext(
378378
*/
379379
function executeOperation(
380380
exeContext: ExecutionContext,
381+
operation: OperationDefinitionNode,
381382
rootValue: mixed,
382383
): MaybePromise<ObjMap<mixed> | null> {
383384
const operation = exeContext.operation;

0 commit comments

Comments
 (0)