diff --git a/spec/Section 2 -- Language.md b/spec/Section 2 -- Language.md index e9ec5bfd2..422afe2e7 100644 --- a/spec/Section 2 -- Language.md +++ b/spec/Section 2 -- Language.md @@ -311,7 +311,7 @@ Note: many examples below will use the query short-hand syntax. ## Selection Sets -SelectionSet : { Selection+ } +SelectionSet : { Selection* } Selection : - Field diff --git a/spec/Section 5 -- Validation.md b/spec/Section 5 -- Validation.md index d3f12aac9..7c2ce8df3 100644 --- a/spec/Section 5 -- Validation.md +++ b/spec/Section 5 -- Validation.md @@ -569,7 +569,7 @@ fragment conflictingDifferingResponses on Pet { * If {selectionType} is a scalar or enum: * The subselection set of that selection must be empty * If {selectionType} is an interface, union, or object - * The subselection set of that selection must NOT BE empty + * The subselection set of that selection must exist, but CAN BE empty **Explanatory Text** @@ -624,6 +624,14 @@ query directQueryOnUnionWithoutSubFields { } ``` +However, an empty selection is valid + +```graphql example +query directQueryOnObjectWithEmptySubFields { + catOrDog {} +} +``` + ## Arguments