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

graphql-tools-monorepo / wrap/src / RemoveObjectFieldDirectives

Class: RemoveObjectFieldDirectives<TContext>

wrap/src.RemoveObjectFieldDirectives

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RemoveObjectFieldDirectivesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RemoveObjectFieldDirectives<TContext>(directiveName, args?): RemoveObjectFieldDirectives<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
directiveNamestring | RegExp
argsRecord<string, any>

Returns

RemoveObjectFieldDirectives<TContext>

Defined in

packages/wrap/src/transforms/RemoveObjectFieldDirectives.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/RemoveObjectFieldDirectives.ts:21