Documentation
API Reference
Classes
FilterRootFields

graphql-tools-monorepo / wrap/src / FilterRootFields

Class: FilterRootFields<TContext>

wrap/src.FilterRootFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<FilterRootFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

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

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
filterRootFieldFilter

Returns

FilterRootFields<TContext>

Defined in

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