Skip to content

Commit

Permalink
Merge pull request #19 from intuit/DOS-1338/variable-definition-direc…
Browse files Browse the repository at this point in the history
…tive

DOS-1338: add support for variable definition directive - (DOS-1338)
  • Loading branch information
ashpak-shaikh authored Mar 3, 2022
2 parents 2823d8a + afbcd07 commit d8e2025
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum OperationType: QUERY='query' | MUTATION='mutation' | SUBSCRIPTION='subscrip

VariableDefinitions : '(' variableDefinition+=VariableDefinition+ ')';

VariableDefinition : desc=StringValue? variable=Variable ':' type=QType ('=' defaultValue=Value)? (',')?;
VariableDefinition : variable=Variable ':' type=QType ('=' defaultValue=Value)? directives+=QDirective* (',')?;

Variable : '$' name=Name;
//
Expand Down

0 comments on commit d8e2025

Please sign in to comment.