File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 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 {
579579
580580Fragment spread arguments can also cause fields to fail to merge.
581581
582- While the following is valid:
583-
584582``` graphql example
585583fragment commandFragment ($command : DogCommand ! ) on Dog {
586584 doesKnowCommand (dogCommand : $command )
587585}
588586
589587fragment potentiallyConflictingArguments (
590588 $commandOne : DogCommand !
591- $commandTwo : DogCommand !
592589) on Dog {
593590 ... commandFragment (command : $commandOne )
594591 ... commandFragment (command : $commandTwo )
595592}
596593
597594fragment 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 {
611595 ... potentiallyConflictingArguments (commandOne : SIT , commandTwo : DOWN )
612596}
613597```
You can’t perform that action at this time.
0 commit comments