Interface: PruneSchemaOptions
utils/src.PruneSchemaOptions
Options for removing unused types from the schema
Table of contents
Properties
- skipEmptyCompositeTypePruning
- skipEmptyUnionPruning
- skipPruning
- skipUnimplementedInterfacesPruning
- skipUnusedTypesPruning
Properties
skipEmptyCompositeTypePruning
• Optional skipEmptyCompositeTypePruning: boolean
Set to true to skip pruning object types or interfaces with no no fields
Defined in
packages/utils/src/types.ts:41 (opens in a new tab)
skipEmptyUnionPruning
• Optional skipEmptyUnionPruning: boolean
Set to true to skip pruning empty unions
Defined in
packages/utils/src/types.ts:50 (opens in a new tab)
skipPruning
• Optional skipPruning: PruneSchemaFilter
Return true to skip pruning this type. This check will run first before any other options. This can be helpful for schemas that support type extensions like Apollo Federation.
Defined in
packages/utils/src/types.ts:36 (opens in a new tab)
skipUnimplementedInterfacesPruning
• Optional skipUnimplementedInterfacesPruning: boolean
Set to true to skip pruning interfaces that are not implemented by any
other types
Defined in
packages/utils/src/types.ts:46 (opens in a new tab)
skipUnusedTypesPruning
• Optional skipUnusedTypesPruning: boolean
Set to true to skip pruning unused types