diff --git a/src/execution/execute.ts b/src/execution/execute.ts index 8c3df9f265..0c68760da2 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -639,14 +639,14 @@ function executeFields( parentType: GraphQLObjectType, sourceValue: unknown, path: Path | undefined, - fields: GroupedFieldSet, + groupedFieldSet: GroupedFieldSet, incrementalDataRecord?: IncrementalDataRecord | undefined, ): PromiseOrValue> { const results = Object.create(null); let containsPromise = false; try { - for (const [responseName, fieldGroup] of fields) { + for (const [responseName, fieldGroup] of groupedFieldSet) { const fieldPath = addPath(path, responseName, parentType.name); const result = executeField( exeContext,