File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1439,6 +1439,27 @@ describe('Execute: Handles inputs', () => {
1439
1439
} ) ;
1440
1440
} ) ;
1441
1441
1442
+ it ( 'when argument variables with the same name are used directly and recursively' , ( ) => {
1443
+ const result = executeQueryWithFragmentArguments ( `
1444
+ query {
1445
+ ...a(value: "A")
1446
+ }
1447
+ fragment a($value: String!) on TestType {
1448
+ ...b(value: "B")
1449
+ fieldInFragmentA: fieldWithNonNullableStringInput(input: $value)
1450
+ }
1451
+ fragment b($value: String!) on TestType {
1452
+ fieldInFragmentB: fieldWithNonNullableStringInput(input: $value)
1453
+ }
1454
+ ` ) ;
1455
+ expect ( result ) . to . deep . equal ( {
1456
+ data : {
1457
+ fieldInFragmentA : '"A"' ,
1458
+ fieldInFragmentB : '"B"' ,
1459
+ } ,
1460
+ } ) ;
1461
+ } ) ;
1462
+
1442
1463
it ( 'when argument passed in as list' , ( ) => {
1443
1464
const result = executeQueryWithFragmentArguments ( `
1444
1465
query Q($opValue: String = "op") {
You can’t perform that action at this time.
0 commit comments