Skip to content

Commit

Permalink
Merge pull request #486 from mjmahone/variable-directives
Browse files Browse the repository at this point in the history
[RFC] Allow directives on variable definitions
  • Loading branch information
mjmahone authored Aug 7, 2018
2 parents 1ee42ce + b7b6a0b commit 3dc4820
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 3dc4820

Please sign in to comment.