Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcinterfacesPruneSchemaOptions

Interface: PruneSchemaOptions

Defined in: packages/utils/src/types.ts:38

Options for removing unused types from the schema

Properties

skipEmptyCompositeTypePruning?

optional skipEmptyCompositeTypePruning?: boolean

Defined in: packages/utils/src/types.ts:48

Set to true to skip pruning object types or interfaces with no no fields


skipEmptyUnionPruning?

optional skipEmptyUnionPruning?: boolean

Defined in: packages/utils/src/types.ts:57

Set to true to skip pruning empty unions


skipPruning?

optional skipPruning?: PruneSchemaFilter

Defined in: packages/utils/src/types.ts:43

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.


skipUnimplementedInterfacesPruning?

optional skipUnimplementedInterfacesPruning?: boolean

Defined in: packages/utils/src/types.ts:53

Set to true to skip pruning interfaces that are not implemented by any other types


skipUnusedTypesPruning?

optional skipUnusedTypesPruning?: boolean

Defined in: packages/utils/src/types.ts:61

Set to true to skip pruning unused types