Documentation
API Reference
Interfaces
PruneSchemaOptions

graphql-tools-monorepo / utils/src / PruneSchemaOptions

Interface: PruneSchemaOptions

utils/src.PruneSchemaOptions

Options for removing unused types from the schema

Table of contents

Properties

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:48


skipEmptyUnionPruning

Optional skipEmptyUnionPruning: boolean

Set to true to skip pruning empty unions

Defined in

packages/utils/src/types.ts:57


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:43


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:53


skipUnusedTypesPruning

Optional skipUnusedTypesPruning: boolean

Set to true to skip pruning unused types

Defined in

packages/utils/src/types.ts:61