Skip to content

Commit 3b0daa0

Browse files
committed
validation
1 parent 80a5f37 commit 3b0daa0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/Section 5 -- Validation.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,20 @@ fragment conflictingDifferingResponses on Pet {
565565
}
566566
```
567567

568+
The same is true if a field is designated `Non-Nullable` in an operation. In this
569+
case, `someValue` could be either a `String` or a `String!` which are two different
570+
types and therefor can not be merged:
571+
572+
```graphql counter-example
573+
fragment conflictingDifferingResponses on Pet {
574+
... on Dog {
575+
someValue: nickname
576+
}
577+
... on Cat {
578+
someValue: nickname!
579+
}
580+
}
581+
```
568582

569583
### Leaf Field Selections
570584

0 commit comments

Comments
 (0)