Docs
API Reference
Classes
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?)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
optionsPruneSchemaOptions

Defined in

packages/wrap/src/transforms/PruneSchema.ts:14 (opens in a new tab)

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:18 (opens in a new tab)