Skip to content

Commit 8150295

Browse files
committed
fix context-free grammar notation
1 parent 9dcc2ae commit 8150295

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spec/Appendix B -- Grammar Summary.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@ Selection :
140140
- FragmentSpread
141141
- InlineFragment
142142

143-
Field : Alias? Name Arguments? Directives? SelectionSet?
143+
Field : Alias? Name Arguments? Nullability? Directives? SelectionSet?
144144

145145
Alias : Name :
146146

147+
Nullability : (`?`|`!`)?
148+
147149
Arguments[Const] : ( Argument[?Const]+ )
148150

149151
Argument[Const] : Name : Value[?Const]

spec/Section 2 -- Language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ which returns the result:
518518

519519
## Nullability
520520

521-
Name Nullability?
521+
Nullability : (`?`|`!`)?
522522

523523
Fields can have their nullability designated with either a `!` to indicate that a
524524
field should be `Non-Nullable` or a `?` to indicate that a field should be

0 commit comments

Comments
 (0)