-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
pluckConfig not ignoring other query tags #4586
Comments
I think this one is more relevant for |
@dotansimha Yes I think so :) |
@ardatan https://codesandbox.io/s/exciting-thunder-gcf0l example.js contains two queries, one with gatsby's |
If you try to use any of the built-in identifiers, they will conflict with one another, because many tools are hardcoded to look for
Finally, later on, to get syntax highlighting in your IDE (vscode is again hardcoded to look for
Utilizing multiple graphql clients/schemas in the same project is not recommended, but with some work you can still achieve all the same tooling. The above setup will give you syntax highlighting in VSCode, will be recognized by prettier, and you can also configure eslint and the Update: here's how you would configure the eslint rules
|
Closing this one here. It's an issue with graphql-tools. @sarink feel free to report it there if it's still relevant! |
I tried all different combinations of
pluckConfig
withmodule
andglobalIdentifier
, at the root of mycodegen.yml
and undergenerates
but it always still parses my gatsbygraphql
tags as well and fails.My
codegen.yml
config file:My Typescript:
Expected behavior
Ignoring all other graphql tags, except
gql
imported fromapollo-boost
Environment:
@graphql-codegen/cli
: 1.17.8The text was updated successfully, but these errors were encountered: