Skip to content

Commit 6301f5a

Browse files
committed
a minor tweak to make the body of executeFields look closer to executeFieldsSerially
1 parent eba89d4 commit 6301f5a

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
@@ -297,10 +297,11 @@ function executeFieldsSerially(
297297
): Promise<Object> {
298298
return Object.keys(fields).reduce(
299299
(prevPromise, responseName) => prevPromise.then(results => {
300+
const fieldASTs = fields[responseName];
301+
300302
const childExePath = exePath.slice();
301303
childExePath.push(responseName);
302304

303-
const fieldASTs = fields[responseName];
304305
const result = resolveField(
305306
exeContext,
306307
parentType,

0 commit comments

Comments
 (0)