The Guild LogoThe Guild Monogram
GraphQL Mesh

GraphQL Mesh

Query anything, run anywhere.

Contact Us

Prune Transform#

The prune transform allows you removing unused and empty types.

yarn add @graphql-mesh/transform-prune

 


 

How 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 pruning
  • skipEmptyCompositeTypePruning (type: Boolean) - Set to true to skip pruning object types or interfaces with no fields
  • skipUnimplementedInterfacesPruning (type: Boolean) - Set to true to skip pruning interfaces that are not implemented by any other types
  • skipEmptyUnionPruning (type: Boolean) - Set to true to skip pruning empty unions
  • skipUnusedTypesPruning (type: Boolean) - Set to true to skip pruning unused types

Content

How to use?Config API Reference
Edit on GitHub