Skip to content

Commit 1677f62

Browse files
committed
validation
1 parent e99db4c commit 1677f62

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/Section 5 -- Validation.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,21 @@ fragment conflictingDifferingResponses on Pet {
564564
}
565565
```
566566

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

569584
**Formal Specification**

0 commit comments

Comments
 (0)