Skip to content

Commit 345602d

Browse files
committed
rename iterator to asyncIterator
1 parent ee398c9 commit 345602d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/execution/execute.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ async function completeAsyncIteratorValue(
763763
fieldGroup: FieldGroup,
764764
info: GraphQLResolveInfo,
765765
path: Path,
766-
iterator: AsyncIterator<unknown>,
766+
asyncIterator: AsyncIterator<unknown>,
767767
): Promise<ReadonlyArray<unknown>> {
768768
let containsPromise = false;
769769
const completedResults: Array<unknown> = [];
@@ -774,7 +774,7 @@ async function completeAsyncIteratorValue(
774774
let iteration;
775775
try {
776776
// eslint-disable-next-line no-await-in-loop
777-
iteration = await iterator.next();
777+
iteration = await asyncIterator.next();
778778
if (iteration.done) {
779779
break;
780780
}
@@ -817,15 +817,15 @@ function completeListValue(
817817
const itemType = returnType.ofType;
818818

819819
if (isAsyncIterable(result)) {
820-
const iterator = result[Symbol.asyncIterator]();
820+
const asyncIterator = result[Symbol.asyncIterator]();
821821

822822
return completeAsyncIteratorValue(
823823
exeContext,
824824
itemType,
825825
fieldGroup,
826826
info,
827827
path,
828-
iterator,
828+
asyncIterator,
829829
);
830830
}
831831

0 commit comments

Comments
 (0)