Skip to content
Discussion options

You must be logged in to vote

I just found an answer in the documentation. You need to supply a namingConvention key with the value keep to your configuration file.

import { CodegenConfig } from '@graphql-codegen/cli'
 
const config: CodegenConfig = {
  // ...
  config: { namingConvention: 'keep' }
  // ...
}
export default config

Link: https://the-guild.dev/graphql/codegen/docs/config-reference/naming-convention

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joeprivettsmart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants