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

[feature request] [codegen/typescript] non-template literal tag syntax for graphql generate #2530

Open
somebody1234 opened this issue Dec 20, 2021 · 0 comments

Comments

@somebody1234
Copy link

see this for an example of one example workaround

the problem with tagged templates is that the types of their arguments aren't narrowed to string literal types (even though this is always possible) - see here, so ideally using some alternate syntax (e.g. a regular function call) would be better.

granted, my usecase is very nonstandard, since i'm only using apollo to fetch schemas and generate types, so i use a standard web request library rather than apollo client to execute queries

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

1 participant