dotansimha / graphql-code-generator-community

MIT License
112 stars 143 forks source link

@graphql-codegen/typescript-react-query@4.1.0 incompatible with graphql-request v6.0.0+ when using graphql-request as the fetcher #367

Open udeyrishi opened 1 year ago

udeyrishi commented 1 year ago

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/typescript-react-query@4.1.0 when used with graphql-request as the fetcher.

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

Expected behavior

Not to get any type errors.

Screenshots or Videos

No response

Platform

Codegen Config File

No response

Additional context

No response

davidchen-allio commented 5 months ago

I have made a pull request to fix this. @saihaj Would you help comment/review on the PR?