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

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
directiveNamestring | RegExp
argsRecord<string, any>

Defined in

packages/wrap/src/transforms/RemoveObjectFieldsWithDirective.ts:17 (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/RemoveObjectFieldsWithDirective.ts:22 (opens in a new tab)