Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Classes
PruneSchema

graphql-tools-monorepo / wrap/src / PruneSchema

Class: PruneSchema<TContext>

wrap/src.PruneSchema

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<PruneTypesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new PruneSchema<TContext>(options?): PruneSchema<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
optionsPruneSchemaOptions

Returns

PruneSchema<TContext>

Defined in

packages/wrap/src/transforms/PruneSchema.ts:12

Methods

transformSchema

transformSchema(originalWrappingSchema, _subschemaConfig): GraphQLSchema

Parameters

NameType
originalWrappingSchemaGraphQLSchema
_subschemaConfigSubschemaConfig<any, any, any, TContext>

Returns

GraphQLSchema

Implementation of

Transform.transformSchema

Defined in

packages/wrap/src/transforms/PruneSchema.ts:16