Skip to content

Commit

Permalink
a minor tweak to make the body of executeFields look closer to execut…
Browse files Browse the repository at this point in the history
…eFieldsSerially
  • Loading branch information
Slava committed Jun 10, 2016
1 parent eba89d4 commit 6301f5a
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 @@ -297,10 +297,11 @@ function executeFieldsSerially(
): Promise<Object> {
return Object.keys(fields).reduce(
(prevPromise, responseName) => prevPromise.then(results => {
const fieldASTs = fields[responseName];

const childExePath = exePath.slice();
childExePath.push(responseName);

const fieldASTs = fields[responseName];
const result = resolveField(
exeContext,
parentType,
Expand Down

0 comments on commit 6301f5a

Please sign in to comment.