@@ -223,7 +223,7 @@ function findConflictsWithinSelectionSet(
223
223
comparedFragmentPairs ,
224
224
false ,
225
225
fieldMap ,
226
- fragmentName ,
226
+ referencedFragmentName ,
227
227
discoveredFragments ,
228
228
) ;
229
229
}
@@ -443,19 +443,26 @@ function findConflictsBetweenSubSelectionSets(
443
443
// and any fragment names found in the given fragment.
444
444
while ( discoveredFragments . length !== 0 ) {
445
445
const item = discoveredFragments . pop ( ) ;
446
- if ( ! item || comparedFragmentPairs . has ( item [ 1 ] , item [ 0 ] , areMutuallyExclusive ) ) {
446
+ if (
447
+ ! item ||
448
+ comparedFragmentPairs . has ( item [ 1 ] , item [ 0 ] , areMutuallyExclusive )
449
+ ) {
447
450
continue ;
448
451
}
449
452
const [ fragmentName , referencedFragmentName ] = item ;
450
- comparedFragmentPairs . add ( referencedFragmentName , fragmentName , areMutuallyExclusive ) ;
453
+ comparedFragmentPairs . add (
454
+ referencedFragmentName ,
455
+ fragmentName ,
456
+ areMutuallyExclusive ,
457
+ ) ;
451
458
collectConflictsBetweenFieldsAndFragment (
452
459
context ,
453
460
conflicts ,
454
461
cachedFieldsAndFragmentNames ,
455
462
comparedFragmentPairs ,
456
463
areMutuallyExclusive ,
457
464
fieldMap1 ,
458
- fragmentName ,
465
+ referencedFragmentName ,
459
466
discoveredFragments ,
460
467
) ;
461
468
}
@@ -479,19 +486,26 @@ function findConflictsBetweenSubSelectionSets(
479
486
// and any fragment names found in the given fragment.
480
487
while ( discoveredFragments . length !== 0 ) {
481
488
const item = discoveredFragments . pop ( ) ;
482
- if ( ! item || comparedFragmentPairs . has ( item [ 1 ] , item [ 0 ] , areMutuallyExclusive ) ) {
489
+ if (
490
+ ! item ||
491
+ comparedFragmentPairs . has ( item [ 1 ] , item [ 0 ] , areMutuallyExclusive )
492
+ ) {
483
493
continue ;
484
494
}
485
495
const [ fragmentName , referencedFragmentName ] = item ;
486
- comparedFragmentPairs . add ( referencedFragmentName , fragmentName , areMutuallyExclusive ) ;
496
+ comparedFragmentPairs . add (
497
+ referencedFragmentName ,
498
+ fragmentName ,
499
+ areMutuallyExclusive ,
500
+ ) ;
487
501
collectConflictsBetweenFieldsAndFragment (
488
502
context ,
489
503
conflicts ,
490
504
cachedFieldsAndFragmentNames ,
491
505
comparedFragmentPairs ,
492
506
areMutuallyExclusive ,
493
507
fieldMap2 ,
494
- fragmentName ,
508
+ referencedFragmentName ,
495
509
discoveredFragments ,
496
510
) ;
497
511
}
0 commit comments