Skip to content

Commit 155e09a

Browse files
committed
fix context-free grammar notation
1 parent ac03e0e commit 155e09a

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
@@ -156,10 +156,12 @@ Selection :
156156
- FragmentSpread
157157
- InlineFragment
158158

159-
Field : Alias? Name Arguments? Directives? SelectionSet?
159+
Field : Alias? Name Arguments? Nullability? Directives? SelectionSet?
160160

161161
Alias : Name :
162162

163+
Nullability : (`?`|`!`)?
164+
163165
Arguments[Const] : ( Argument[?Const]+ )
164166

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

spec/Section 2 -- Language.md

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

518518
## Nullability
519519

520-
Name Nullability?
520+
Nullability : (`?`|`!`)?
521521

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

0 commit comments

Comments
 (0)