Skip to content

Commit f186ce7

Browse files
committed
Add optional description to fragment and variable definitions
1 parent 88c47a8 commit f186ce7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/Section 2 -- Language.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,8 @@ which returns the result:
613613

614614
FragmentSpread : ... FragmentName Directives?
615615

616-
FragmentDefinition : fragment FragmentName TypeCondition Directives?
617-
SelectionSet
616+
FragmentDefinition : Description? fragment FragmentName TypeCondition
617+
Directives? SelectionSet
618618

619619
FragmentName : Name but not `on`
620620

@@ -1272,7 +1272,8 @@ Variable : $ Name
12721272

12731273
VariablesDefinition : ( VariableDefinition+ )
12741274

1275-
VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
1275+
VariableDefinition : Description? Variable : Type DefaultValue?
1276+
Directives[Const]?
12761277

12771278
DefaultValue : = Value[Const]
12781279

0 commit comments

Comments
 (0)