graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

Allow passing metaData to fetcher in generated react-query hooks

Open Dwlad90 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. We need to pass additional args to the fetcher, e.g., a signal which is currently impossible with a generated code despite the library allowing it.

Describe the solution you'd like I'd like an interface through which the arguments could be passed to the fetcher

Describe alternatives you've considered

The only alternative to manually edit the generated file every time which, of course, is far from ideal.

Additional context I'm happy to suggest a PR adding this functionality and relevant tests

Dwlad90 avatar Sep 19 '22 14:09 Dwlad90