File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -579,35 +579,19 @@ fragment conflictingDifferingResponses on Pet {
579
579
580
580
Fragment spread arguments can also cause fields to fail to merge.
581
581
582
- While the following is valid:
583
-
584
582
``` graphql example
585
583
fragment commandFragment ($command : DogCommand ! ) on Dog {
586
584
doesKnowCommand (dogCommand : $command )
587
585
}
588
586
589
587
fragment potentiallyConflictingArguments (
590
588
$commandOne : DogCommand !
591
- $commandTwo : DogCommand !
592
589
) on Dog {
593
590
... commandFragment (command : $commandOne )
594
591
... commandFragment (command : $commandTwo )
595
592
}
596
593
597
594
fragment safeFragmentArguments on Dog {
598
- ... potentiallyConflictingArguments (commandOne : SIT , commandTwo : SIT )
599
- }
600
- ```
601
-
602
- it is only valid because ` safeFragmentArguments ` uses
603
- ` potentiallyConflictingArguments ` with the same value for the fragment-defined
604
- variables ` commandOne ` and ` commandTwo ` . Therefore ` commandFragment ` resolves
605
- ` doesKnowCommand ` 's ` dogCommand ` argument value to ` SIT ` in both cases.
606
-
607
- However, by changing the fragment spread argument values:
608
-
609
- ``` graphql counter-example
610
- fragment conflictingFragmentArguments on Dog {
611
595
... potentiallyConflictingArguments (commandOne : SIT , commandTwo : DOWN )
612
596
}
613
597
```
You can’t perform that action at this time.
0 commit comments