如何使 Graphql Code Generator for typescript 将其枚举转换为 pascal 大小写而不是蛇形大小写?

How do I make Graphql Code Generator for typescript make its enums into pascal case instead of snake case?

目前,Graphql 代码生成器生成的枚举如下所示

export enum Test_Type {
    Test: 'TEST',
}

但是我希望生成的枚举像这样采用 Pascal 格式:

export enum TestType {
  Test: 'TEST',
}

编辑,我的 codegen.yml:

overwrite: true
generates:
  src/graphql/generated/graphql.ts:
    schema: ${API_ENDPOINT}
    documents: ['src/graphql/**/*.graphql', 'src/graphql/**/*.gql']
    plugins:
      - 'typescript'
      - 'typescript-operations'
      - 'typescript-react-apollo'
  ./graphql.schema.json:
    schema: ${API_ENDPOINT}
    plugins:
      - 'introspection'
hooks:
  afterAllFileWrite:
    - prettier --write

枚举的架构是

enum TEST_TYPE {
    TEST
}

您可以在 codegen.yml 文件的配置中设置 naming convention

config:
  namingConvention: change-case-all#pascalCase