Skip to content

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

@tho-graf

Description

@tho-graf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions