On this page

pruneSchema

The pruneSchema function exported by @graphql-tools/utils.

pruneSchema(schema, options?): GraphQLSchema

Defined in: packages/utils/src/prune.ts:25

Prunes the provided schema, removing unused and empty types

Parameters

schema

GraphQLSchema

The schema to prune

options?

PruneSchemaOptions = {}

Additional options for removing unused types from the schema

Returns

GraphQLSchema