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