Skip to content

Commit

Permalink
[RFC] Allow directives on variable definitions
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 committed Aug 29, 2018
1 parent 4a70722 commit bc4901d
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
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
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
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 bc4901d

Please sign in to comment.