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

apollo client:check doen't find GraphQl Queries in gql('..') from graphql-codegen #2678

Open
tho-graf opened this issue Mar 8, 2023 · 2 comments

Comments

@tho-graf
Copy link

tho-graf commented Mar 8, 2023

Hi there,

i just migrated from apollo codegen to graphql-codegen with the following config presetConfig: { gqlTagName: 'gql', }, as in your documentation, which is pretty awesome and works fine.
But we are also checking our queries against a schema with apollo client:check. But I couldn't configure the cli to find the gql(...) method generated by graphql-codegen. I could only find the --tagName option, which is not working.
Is it possible to tell apollo client:check to look for this specific gql function?

Cheers
Thomas

@jbool24
Copy link

jbool24 commented May 25, 2023

+1 Same here. Since the recommendation is to migrate to graphql-codgen, can we get some co-existance between configs of codegen client-preset setup with apollo VS Code Extension features as well as cli check functionality.

@Elvincth
Copy link

Elvincth commented Nov 7, 2023

+1 is there any alternative extension we can use?

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

No branches or pull requests

3 participants