@graphql-tools/utils
Version:
Common package containing utils and types for GraphQL tools
9 lines (8 loc) • 382 B
TypeScript
import { GraphQLSchema } from 'graphql';
import { PruneSchemaOptions } from './types.js';
/**
* Prunes the provided schema, removing unused and empty types
* @param schema The schema to prune
* @param options Additional options for removing unused types from the schema
*/
export declare function pruneSchema(schema: GraphQLSchema, options?: PruneSchemaOptions): GraphQLSchema;