Skip to content

Commit

Permalink
graphql -> execute (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Fix authored and freiksenet committed Apr 5, 2018
1 parent 54d140a commit 3b71ebc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/stitching/delegateToSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import {
SelectionSetNode,
SelectionNode,
subscribe,
graphql,
print,
execute,
validate,
VariableDefinitionNode,
} from 'graphql';
Expand Down Expand Up @@ -66,9 +65,9 @@ export default async function delegateToSchema(
}

if (targetOperation === 'query' || targetOperation === 'mutation') {
const rawResult = await graphql(
const rawResult = await execute(
targetSchema,
print(processedRequest.document),
processedRequest.document,
info.rootValue,
context,
processedRequest.variables,
Expand Down

0 comments on commit 3b71ebc

Please sign in to comment.