dotansimha / graphql-code-generator-community

MIT License
118 stars 156 forks source link

fix: add empty object in place of variables for more consistent keys #894

Open rliljest opened 1 week ago

rliljest commented 1 week ago

Description

Addresses potential issues stemming from mismatched generated keys.

Related https://github.com/dotansimha/graphql-code-generator-community/issues/866

Type of change

Please delete options that are not relevant.

NOTE: Does have a fairly minor breaking change in case clients were hard-coding keys (not using generated helpers) and specifying "exact" react-query key matching

How Has This Been Tested?

Automated tests have been updated to accommodate this change

Test Environment:

Checklist:

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: 3794bb15981972f76b98e54a1b95919bde587574

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------------------------------- | ----- | | @graphql-codegen/typescript-react-query | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR