From 359e9cd94ba1061f8247da24e37f177906145e08 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Tue, 26 Oct 2021 21:50:58 +0300 Subject: [PATCH] Update executor --- src/execution/executor.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/execution/executor.ts b/src/execution/executor.ts index 0f59b46d56..bc4dd91b4e 100644 --- a/src/execution/executor.ts +++ b/src/execution/executor.ts @@ -49,7 +49,11 @@ import { isAsyncIterable } from '../jsutils/isAsyncIterable'; import { isIterableObject } from '../jsutils/isIterableObject'; import { resolveAfterAll } from '../jsutils/resolveAfterAll'; -import { getVariableValues, getArgumentValues, getDirectiveValues } from './values'; +import { + getVariableValues, + getArgumentValues, + getDirectiveValues, +} from './values'; import { collectFields, collectSubfields as _collectSubfields, @@ -920,7 +924,7 @@ export class Executor { index++; continue; } - + this.completeListItemValue( completedResults, index++, @@ -975,7 +979,9 @@ export class Executor { return { initialCount: // istanbul ignore next (initialCount is required number argument) - typeof stream.initialCount === 'number' ? stream.initialCount : undefined, + typeof stream.initialCount === 'number' + ? stream.initialCount + : undefined, label: typeof stream.label === 'string' ? stream.label : undefined, }; }