The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Skip to main content

Naming Convention Transform

The naming-convention transform allow you apply naming convention to GraphQL types and GraphQL fields easily.

yarn add @graphql-mesh/transform-naming-convention

How to use?#

Add the following configuration to your Mesh config file:

transforms:
- namingConvention:
typeNames: pascalCase
enumValues: upperCase
fieldNames: camelCase

You can see our gRPC example that uses this transform to see how it is applied. Click here to open the example on GitHub

Config API Reference#

  • typeNames (type: String (camelCase | capitalCase | constantCase | dotCase | headerCase | noCase | paramCase | pascalCase | pathCase | sentenceCase | snakeCase | upperCase | lowerCase))
  • fieldNames (type: String (camelCase | capitalCase | constantCase | dotCase | headerCase | noCase | paramCase | pascalCase | pathCase | sentenceCase | snakeCase | upperCase | lowerCase))
  • enumValues (type: String (camelCase | capitalCase | constantCase | dotCase | headerCase | noCase | paramCase | pascalCase | pathCase | sentenceCase | snakeCase | upperCase | lowerCase))