Skip to content

Commit 6972be6

Browse files
committed
fix updated collect fields from fragment-args-branch
latest edits not included within graphql#4015
1 parent be16adf commit 6972be6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/execution/collectFields.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ interface CollectFieldsContext {
5656
schema: GraphQLSchema;
5757
fragments: ObjMap<FragmentDetails>;
5858
variableValues: { [variable: string]: unknown };
59-
fragmentVariableValues?: FragmentVariables;
6059
operation: OperationDefinitionNode;
6160
runtimeType: GraphQLObjectType;
6261
visitedFragmentNames: Set<string>;
@@ -135,14 +134,16 @@ export function collectSubfields(
135134
const newDeferUsages: Array<DeferUsage> = [];
136135

137136
for (const fieldDetail of fieldGroup) {
138-
const node = fieldDetail.node;
139-
if (node.selectionSet) {
137+
const selectionSet = fieldDetail.node.selectionSet;
138+
if (selectionSet) {
139+
const { deferUsage, fragmentVariables } = fieldDetail;
140140
collectFieldsImpl(
141141
context,
142-
node.selectionSet,
142+
selectionSet,
143143
subGroupedFieldSet,
144144
newDeferUsages,
145-
fieldDetail.deferUsage,
145+
deferUsage,
146+
fragmentVariables,
146147
);
147148
}
148149
}

0 commit comments

Comments
 (0)