Prune Transform
The prune transform allows you removing unused and empty types.
yarn add @graphql-mesh/transform-pruneHow to use?
Add the following configuration to your Mesh config file:
transforms:
- prune:
skipPruning: []Config API Reference
skipPruning(type:Array of String, required) - Types to skip pruningskipEmptyCompositeTypePruning(type:Boolean) - Set totrueto skip pruning object types or interfaces with no fieldsskipUnimplementedInterfacesPruning(type:Boolean) - Set totrueto skip pruning interfaces that are not implemented by any other typesskipEmptyUnionPruning(type:Boolean) - Set totrueto skip pruning empty unionsskipUnusedTypesPruning(type:Boolean) - Set totrueto skip pruning unused types
Last updated on July 27, 2022