graphql-tools-monorepo / wrap/src / PruneSchema
Class: PruneSchema<TContext>
wrap/src.PruneSchema
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Implements
Transform<PruneTypesTransformationContext,TContext>
Table of contents
Constructors
Methods
Constructors
constructor
• new PruneSchema<TContext>(options?): PruneSchema<TContext>
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Parameters
| Name | Type |
|---|---|
options | PruneSchemaOptions |
Returns
PruneSchema<TContext>
Defined in
packages/wrap/src/transforms/PruneSchema.ts:12
Methods
transformSchema
▸ transformSchema(originalWrappingSchema, _subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema