apollographql / apollo-tooling

✏️ Apollo CLI for client tooling (Mostly replaced by Rover)
https://apollographql.com
MIT License
3.04k stars 470 forks source link

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

Open tho-graf opened 1 year ago

tho-graf commented 1 year ago

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 commented 1 year ago

+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 commented 1 year ago

+1 is there any alternative extension we can use?

mmuth commented 1 month ago

still struggling with this :(