Documentation
API Reference
Classes
FilterObjectFieldDirectives

graphql-tools-monorepo / wrap/src / FilterObjectFieldDirectives

Class: FilterObjectFieldDirectives<TContext>

wrap/src.FilterObjectFieldDirectives

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<FilterObjectFieldDirectivesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new FilterObjectFieldDirectives<TContext>(filter): FilterObjectFieldDirectives<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
filter(dirName: string, dirValue: any) => boolean

Returns

FilterObjectFieldDirectives<TContext>

Defined in

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