Skip to content

Commit f9584af

Browse files
authored
Update Section 5 -- Validation.md
1 parent 57949e7 commit f9584af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/Section 5 -- Validation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -575,14 +575,14 @@ fragment conflictingDifferingResponses on Pet {
575575

576576
- For each {selection} in the document:
577577
- Let {selectionType} be the result type of {selection}.
578-
- If {selectionType} is a scalar or enum or list of these types:
578+
- If {selectionType} is a scalar, enum or list of those types:
579579
- The subselection set of that selection must be empty.
580-
- If {selectionType} is an interface, union, or object or list of these types:
580+
- If {selectionType} is an interface, union, object or list of those types:
581581
- The subselection set of that selection must NOT BE empty.
582582

583583
**Explanatory Text**
584584

585-
Field selections on scalars or enums are never allowed, because they are the
585+
Field selections on scalars, enums or list of those types are never allowed, because they are the
586586
leaf nodes of any GraphQL operation.
587587

588588
The following is valid.
@@ -604,8 +604,8 @@ fragment scalarSelectionsNotAllowedOnInt on Dog {
604604
```
605605

606606
Conversely the leaf field selections of GraphQL operations must be of type
607-
scalar or enum. Leaf selections on objects, interfaces, and unions without
608-
subfields are disallowed.
607+
scalar, enum, or list of those types. Leaf selections on objects, interfaces, unions
608+
or list of those types without subfields are disallowed.
609609

610610
Let's assume the following additions to the query root operation type of the
611611
schema:

0 commit comments

Comments
 (0)