Skip to content

Commit

Permalink
[RFC] Allow directives on variable definitions (#510)
Browse files Browse the repository at this point in the history
Redo of #486. Will wait discussion at the next WG meeting.
  • Loading branch information
mjmahone authored and leebyron committed Oct 1, 2018
1 parent 1278654 commit 760753e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/Appendix B -- Grammar Summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ObjectField[Const] : Name : Value[?Const]

VariableDefinitions : ( VariableDefinition+ )

VariableDefinition : Variable : Type DefaultValue?
VariableDefinition : Variable : Type DefaultValue? Directives[Const]?

Variable : $ Name

Expand Down Expand Up @@ -296,6 +296,7 @@ ExecutableDirectiveLocation : one of
`FRAGMENT_DEFINITION`
`FRAGMENT_SPREAD`
`INLINE_FRAGMENT`
`VARIABLE_DEFINITION`

TypeSystemDirectiveLocation : one of
`SCHEMA`
Expand Down
2 changes: 1 addition & 1 deletion spec/Section 2 -- Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ Variable : $ Name

VariableDefinitions : ( VariableDefinition+ )

VariableDefinition : Variable : Type DefaultValue?
VariableDefinition : Variable : Type DefaultValue? Directives[Const]?

DefaultValue : = Value[Const]

Expand Down
1 change: 1 addition & 0 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,7 @@ ExecutableDirectiveLocation : one of
`FRAGMENT_DEFINITION`
`FRAGMENT_SPREAD`
`INLINE_FRAGMENT`
`VARIABLE_DEFINITION`

TypeSystemDirectiveLocation : one of
`SCHEMA`
Expand Down

0 comments on commit 760753e

Please sign in to comment.