graphql-code-generator-community
graphql-code-generator-community copied to clipboard
@graphql-codegen/[email protected] incompatible with graphql-request v6.0.0+ when using graphql-request as the fetcher
Which packages are impacted by your issue?
@graphql-codegen/typescript-react-query
Describe the bug
This ticket is essentially the same as https://github.com/dotansimha/graphql-code-generator-community/issues/331, except it also applies to the package @graphql-codegen/[email protected] when used with graphql-request as the fetcher.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
- Update graphql-request to 6.0.0
- Generate typings
Expected behavior
Not to get any type errors.
Screenshots or Videos
No response
Platform
- OS: macOS
- NodeJS: 18.16.0
graphqlversion: 16.7.1@graphql-codegen/cli: 4.0.0,@graphql-codegen/near-operation-file-preset: 2.5.0,@graphql-codegen/typescript: 4.0.1,@graphql-codegen/typescript-operations: 4.0.1,@graphql-codegen/typescript-react-query: ^4.1.0,
Codegen Config File
No response
Additional context
No response
I have made a pull request to fix this. @saihaj Would you help comment/review on the PR?