Open azu opened 1 month ago
Latest commit: 67ede7c531513dac6351be72b6f49e71a7f42a72
The changes in this PR will be included in the next version bump.
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
Ah, I notice that this PR is duplicated of https://github.com/dotansimha/graphql-code-generator/pull/9574, but this PR includes a test.
@n1ru4l Thanks.
I've added enumsAsConst
to website/src/pages/plugins/presets/preset-client.mdx
https://github.com/dotansimha/graphql-code-generator/pull/9981/commits/c9a3511c6b5ce8f58b6740a3daafede5c4c9d22f
Description
Add
enumsAsConst
to client presets.Related
Edit:
This PR is duplicated of https://github.com/dotansimha/graphql-code-generator/pull/9574, but this includes a test.
Type of change
Please delete options that are not relevant.
Screenshots/Sandbox (if appropriate/relevant):
Add Unit Test
How Has This Been Tested?
enumsAsConst
npm test
Test Environment:
@graphql-codegen/...
: latestChecklist:
Further comments
client preset already support
enumsAsType
. I think that it should supportenumsAsConst
too.enumsAsTypes
can't be used withclient-preset
· Issue #8471 · dotansimha/graphql-code-generator