File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments