-
Notifications
You must be signed in to change notification settings - Fork 1.4k
GraphQLError: Syntax Error: Unexpected <EOF> when a file only contains commented out query/mutation #4426
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@capaj @dotansimha Instead of having an additional step on graphql-tools, I think graphql-js should return an empty |
@IvanGoncharov what do you think? |
@dotansimha @ardatan I think this is related to graphql/graphql-js#2241 and could probably done as part of that work. Even if we upstream this to
|
Latest graphql-tools is now using a wrapped method for the |
Ok I can confirm that #4553 fixed this issue as well. |
Fixed in latest version of our plugins. Please make sure to update cli/core to latest ( |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
just run codegen
My GraphQL schema:
doesn't matter
My GraphQL operations:
codegen.yml
config file:doesn't matter
Expected behavior
no error
Environment:
@graphql-codegen/...
: 1.17.4Additional context
commenting out a query/mutation should not cause codegen to fail. Maybe it could print a warning, but it should not fail.
The text was updated successfully, but these errors were encountered: