diff --git a/gql/lib/src/ast/ast.dart b/gql/lib/src/ast/ast.dart index bf9ad646..a71354e3 100644 --- a/gql/lib/src/ast/ast.dart +++ b/gql/lib/src/ast/ast.dart @@ -103,6 +103,7 @@ enum DirectiveLocation { fragmentDefinition, fragmentSpread, inlineFragment, + variableDefinition, schema, scalar, object, diff --git a/gql/lib/src/language/parser.dart b/gql/lib/src/language/parser.dart index 35d1d1f5..d4882479 100644 --- a/gql/lib/src/language/parser.dart +++ b/gql/lib/src/language/parser.dart @@ -881,6 +881,8 @@ class _Parser { return DirectiveLocation.fragmentSpread; case "INLINE_FRAGMENT": return DirectiveLocation.inlineFragment; + case "VARIABLE_DEFINITION": + return DirectiveLocation.variableDefinition; case "SCHEMA": return DirectiveLocation.schema; case "SCALAR": diff --git a/gql/lib/src/language/printer.dart b/gql/lib/src/language/printer.dart index 1ec8b8a9..e50b1d1d 100644 --- a/gql/lib/src/language/printer.dart +++ b/gql/lib/src/language/printer.dart @@ -736,6 +736,8 @@ String? _directiveLocation(DirectiveLocation location) { return "FRAGMENT_SPREAD"; case DirectiveLocation.inlineFragment: return "INLINE_FRAGMENT"; + case DirectiveLocation.variableDefinition: + return "VARIABLE_DEFINITION"; case DirectiveLocation.schema: return "SCHEMA"; case DirectiveLocation.scalar: