The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild


Hive logoHive blurred logo


Schema Registry for your GraphQL Workflows

Skip to main content

Prefix Transform

The prefix transform allow you prefix GraphQL types and GraphQL root operations (under Query/Mutation).

You can use it to easily "namespace" APIs in your unified API and avoid conflicts.

yarn add @graphql-mesh/transform-prefix

How to use?#

Add the following configuration to your Mesh config file:

- prefix:
value: MyApi_

You can check out our example that uses schema stitching with a PostgreSQL datasource and prefix transform. Click here to open the example on GitHub

Config API Reference#

  • value (type: String) - The prefix to apply to the schema types. By default it's the API name.
  • ignore (type: Array of String, required) - List of ignored types
  • includeRootOperations (type: Boolean) - Changes root types and changes the field names