From 8a9e0a278bd082f85729b5fc7e5838324ab8248c Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 7 Aug 2019 21:54:12 -0400 Subject: [PATCH] Parse variable as input value --- graphql_parser/lib/src/language/parser.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphql_parser/lib/src/language/parser.dart b/graphql_parser/lib/src/language/parser.dart index 3ec93031..100ab614 100644 --- a/graphql_parser/lib/src/language/parser.dart +++ b/graphql_parser/lib/src/language/parser.dart @@ -494,7 +494,8 @@ class Parser { InputValueContext parseValue() => parseInputValue(); InputValueContext parseInputValue() { - return (parseNumberValue() ?? + return (parseVariable() ?? + parseNumberValue() ?? parseStringValue() ?? parseBooleanValue() ?? parseNullValue() ??