Skip to content

Commit c7df3e3

Browse files
committed
reverted fix for P14, to be fixed by #958
1 parent f062daf commit c7df3e3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

spec/Section 5 -- Validation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,16 +575,16 @@ fragment conflictingDifferingResponses on Pet {
575575
**Formal Specification**
576576

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

584584
**Explanatory Text**
585585

586-
Scalars and enums are the underlying type of leaf nodes of any GraphQL
587-
operation. Field selections are never allowed on leaf nodes.
586+
Field selections on scalars or enums are never allowed, because they are the
587+
leaf nodes of any GraphQL operation.
588588

589589
The following is valid.
590590

@@ -604,9 +604,9 @@ fragment scalarSelectionsNotAllowedOnInt on Dog {
604604
}
605605
```
606606

607-
Conversely the underlying type of leaf field selections of GraphQL operations
608-
must be scalar or enum. Leaf selections without subfields on fields whose
609-
underlying type is object, interface, or union are disallowed.
607+
Conversely the leaf field selections of GraphQL operations must be of type
608+
scalar or enum. Leaf selections on objects, interfaces, and unions without
609+
subfields are disallowed.
610610

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

0 commit comments

Comments
 (0)