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.
#
How to use?Add the following configuration to your Mesh config file:
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 Referencevalue
(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 typesincludeRootOperations
(type:Boolean
) - Changes root types and changes the field names