Documentation
API Reference
Classes
RemoveObjectFieldsWithDirective

graphql-tools-monorepo / wrap/src / RemoveObjectFieldsWithDirective

Class: RemoveObjectFieldsWithDirective<TContext>

wrap/src.RemoveObjectFieldsWithDirective

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RemoveObjectFieldsWithDirectiveTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

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

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
directiveNamestring | RegExp
argsRecord<string, any>

Returns

RemoveObjectFieldsWithDirective<TContext>

Defined in

packages/wrap/src/transforms/RemoveObjectFieldsWithDirective.ts:14

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/RemoveObjectFieldsWithDirective.ts:19