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

graphql-tools-monorepo / wrap/src / RemoveObjectFieldsWithDeprecation

Class: RemoveObjectFieldsWithDeprecation<TContext>

wrap/src.RemoveObjectFieldsWithDeprecation

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RemoveObjectFieldsWithDeprecationTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RemoveObjectFieldsWithDeprecation<TContext>(reason): RemoveObjectFieldsWithDeprecation<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
reasonstring | RegExp

Returns

RemoveObjectFieldsWithDeprecation<TContext>

Defined in

packages/wrap/src/transforms/RemoveObjectFieldsWithDeprecation.ts:13

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/RemoveObjectFieldsWithDeprecation.ts:22