File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,19 @@ export function substituteFragmentArguments(
22
22
def : FragmentDefinitionNode ,
23
23
fragmentSpread : FragmentSpreadNode ,
24
24
) : SelectionSetNode {
25
- const argumentDefinitions = def . variableDefinitions ;
26
- if ( argumentDefinitions == null || argumentDefinitions . length === 0 ) {
25
+ const fragmentDefinitionVariables = def . variableDefinitions ;
26
+ if (
27
+ fragmentDefinitionVariables == null ||
28
+ fragmentDefinitionVariables . length === 0
29
+ ) {
27
30
return def . selectionSet ;
28
31
}
32
+
29
33
const argumentValues = fragmentArgumentSubstitutions (
30
- argumentDefinitions ,
34
+ fragmentDefinitionVariables ,
31
35
fragmentSpread . arguments ,
32
36
) ;
37
+
33
38
return visit ( def . selectionSet , {
34
39
Variable ( node ) {
35
40
return argumentValues . get ( node . name . value ) ;
You can’t perform that action at this time.
0 commit comments