Skip to content

Commit 3516ca1

Browse files
committed
clarify example
1 parent b60feac commit 3516ca1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

spec/Section 5 -- Validation.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,17 @@ fragment potentiallyConflictingArguments(
591591
...commandFragment(command: $commandTwo)
592592
}
593593

594-
fragment safeFragmentArguments on Dog {
595-
...potentiallyConflictingArguments(commandOne: SIT, commandTwo: DOWN)
594+
query {
595+
pet {
596+
...potentiallyConflictingArguments(commandOne: SIT, commandTwo: DOWN)
597+
}
596598
}
597599
```
598600

599-
If two fragment spreads with the same name supply different argument values,
600-
their fields will not be able to merge. In this case, validation fails because
601-
the fragment spread `...commandFragment(command: SIT)` and
602-
`...commandFragment(command: DOWN)` are part of the visited selections that will
601+
If two fragment spreads with the same name, and hence the same selection,
602+
supply different argument values, their fields will not be able to merge.
603+
In this case, validation fails because the fragment spread `...commandFragment(command: SIT)`
604+
and `...commandFragment(command: DOWN)` are part of the visited selections that will
603605
be merged.
604606

605607
If both of these spreads would have `$commandOne` or `$commandTwo` as the

0 commit comments

Comments
 (0)