The Rename Transform in GraphQL Mesh allows you to rename types, fields, and field arguments, making queries look more like mutations. Learn how to use this transform and its RegEx feature in this guide.
The rename transform allows you to rename:
GraphQL types
GraphQL fields
GraphQL field arguments
The rename transform helps you avoid conflicting names, simplify complicated names and make
queries look more like mutations.
How to use?
You can import createRenameTransform to create an instance of the transform. You can use regular
JavaScript functions to rename types, fields, and field arguments.