Fetcher generated multiple times for preset near-operation-file #8526
Unanswered
john-persson-polestar
asked this question in
General
Replies: 2 comments 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for you reply @charlypoly, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have setup
typescript-react-query
with thenear-operation-file
preset which gives me a problem with the fetcher function.If you're not familiar
near-operation-file
is a preset which outputs the generated file right next to the source.graphql
file.As it turns out the fetcher function gets generated multiple times at the top of each output file.
is there any way around this that I'm missing?
Here is my full
codegen.yml
:Thank you for an amazing library!
Best,
/John
Beta Was this translation helpful? Give feedback.
All reactions