Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compiler] support multiple arguments in directives #2711

Merged
merged 2 commits into from
Oct 30, 2020

Conversation

martinbonnin
Copy link
Contributor

closes #2708

@@ -96,7 +96,7 @@ directives
;

directive
: '@' NAME ':' valueOrVariable | '@' NAME | '@' NAME '(' argument ')'
: '@' NAME arguments?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what the ':' was up there but I didn't find it in http://spec.graphql.org/draft/#Directives so I'm assuming it's safe to remove that case.

@martinbonnin martinbonnin merged commit b356f5a into main Oct 30, 2020
@martinbonnin martinbonnin deleted the bug-2708/multiple-directive-arguments branch October 30, 2020 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directive with multiple arguments throws DocumentParseException
2 participants