Is your feature request related to a problem? Please describe.
Currently graphql-tag-operations only emits typings when graphql function is used as a normal function. Any kind of mixing or interpolation throws it off. The way it's setup we cannot use GraphQL fragments and get the automagical typing
Describe the solution you'd like
Since we have access to the sources, I suggest we create additional typings (could be hidden behind a flag) that when enabled, will emit Template Literals tag-function friendly types.
Is your feature request related to a problem? Please describe.
Currently
graphql-tag-operations
only emits typings whengraphql
function is used as a normal function. Any kind of mixing or interpolation throws it off. The way it's setup we cannot use GraphQL fragments and get the automagical typingDescribe the solution you'd like
Since we have access to the sources, I suggest we create additional typings (could be hidden behind a flag) that when enabled, will emit Template Literals tag-function friendly types.
These could look like
The reference isn't perfect but you get the idea
Describe alternatives you've considered
No response
Is your feature request related to a problem? Please describe.
Yes. If you have a use case where you make use of fragments, you have to do a lot of hard-coding that could be automated with this feature