apollo-tooling icon indicating copy to clipboard operation
apollo-tooling copied to clipboard

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

Open tho-graf opened this issue 2 years ago • 3 comments

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

tho-graf avatar Mar 08 '23 15:03 tho-graf

+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.

jbool24 avatar May 25 '23 21:05 jbool24

+1 is there any alternative extension we can use?

Elvincth avatar Nov 07 '23 09:11 Elvincth