Skip to content

Commit

Permalink
Clarify that selection sets cannot be empty (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed May 19, 2023
1 parent afc0a35 commit a5cc6ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/Section 3 -- Type System.md
Expand Up @@ -1796,8 +1796,9 @@ to denote a field that uses a Non-Null type like this: `name: String!`.
**Nullable vs. Optional**

Fields are _always_ optional within the context of a selection set, a field may
be omitted and the selection set is still valid. However fields that return
Non-Null types will never return the value {null} if queried.
be omitted and the selection set is still valid (so long as the selection set
does not become empty). However fields that return Non-Null types will never
return the value {null} if queried.

Inputs (such as field arguments), are always optional by default. However a
non-null input type is required. In addition to not accepting the value {null},
Expand Down

0 comments on commit a5cc6ea

Please sign in to comment.