Skip to content

Commit

Permalink
rename fieldNodes variable to fieldGroup
Browse files Browse the repository at this point in the history
to match type
  • Loading branch information
yaacovCR authored and IvanGoncharov committed Apr 6, 2023
1 parent b1dceba commit 0fb9f1f
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 84 deletions.
4 changes: 2 additions & 2 deletions src/execution/collectFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function collectSubfields(
variableValues: { [variable: string]: unknown },
operation: OperationDefinitionNode,
returnType: GraphQLObjectType,
fieldNodes: FieldGroup,
fieldGroup: FieldGroup,
): FieldsAndPatches {
const subFieldNodes = new AccumulatorMap<string, FieldNode>();
const visitedFragmentNames = new Set<string>();
Expand All @@ -98,7 +98,7 @@ export function collectSubfields(
patches: subPatches,
};

for (const node of fieldNodes) {
for (const node of fieldGroup) {
if (node.selectionSet) {
collectFieldsImpl(
schema,
Expand Down
Loading

0 comments on commit 0fb9f1f

Please sign in to comment.