Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron authored Apr 23, 2018
1 parent 0195b30 commit 571f2bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/execution/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function executeImpl(
// field and its descendants will be omitted, and sibling fields will still
// be executed. An execution which encounters errors will still result in a
// resolved Promise.
const data = executeOperation(exeContext, rootValue);
const data = executeOperation(exeContext, context.operation, rootValue);
return buildResponse(exeContext, data);
}

Expand Down Expand Up @@ -378,6 +378,7 @@ export function buildExecutionContext(
*/
function executeOperation(
exeContext: ExecutionContext,
operation: OperationDefinitionNode,
rootValue: mixed,
): MaybePromise<ObjMap<mixed> | null> {
const operation = exeContext.operation;
Expand Down

0 comments on commit 571f2bc

Please sign in to comment.