How can I detect enum key on naming convention? #10293
Unanswered
moonyyy1890
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, I have two enums with the same value on my GQL schema:
I'm using
namingConvention
andenumValues
on my codegen.ymlHow can I get the enum name in the enum-values.js? On your doc:
https://the-guild.dev/graphql/codegen/docs/config-reference/naming-convention#providing-your-own-naming-function
I can only get the enum value, but cannot get the enum name. So if I have two enum with the same value and if I only want to apply a specific naming rule to one enum, I cannot get the enum name.
I'm trying to set a second parameter like:
But the first parameter value is always enum value, and I cannot get a enum name.
Beta Was this translation helpful? Give feedback.
All reactions