File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ interface CollectFieldsContext {
56
56
schema : GraphQLSchema ;
57
57
fragments : ObjMap < FragmentDetails > ;
58
58
variableValues : { [ variable : string ] : unknown } ;
59
- fragmentVariableValues ?: FragmentVariables ;
60
59
operation : OperationDefinitionNode ;
61
60
runtimeType : GraphQLObjectType ;
62
61
visitedFragmentNames : Set < string > ;
@@ -135,14 +134,16 @@ export function collectSubfields(
135
134
const newDeferUsages : Array < DeferUsage > = [ ] ;
136
135
137
136
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 ;
140
140
collectFieldsImpl (
141
141
context ,
142
- node . selectionSet ,
142
+ selectionSet ,
143
143
subGroupedFieldSet ,
144
144
newDeferUsages ,
145
- fieldDetail . deferUsage ,
145
+ deferUsage ,
146
+ fragmentVariables ,
146
147
) ;
147
148
}
148
149
}
You can’t perform that action at this time.
0 commit comments