Class: FilterRootFields<TContext>
wrap/src.FilterRootFields
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Implements
Transform<FilterRootFieldsTransformationContext,TContext>
Table of contents
Constructors
Methods
Constructors
constructor
• new FilterRootFields<TContext>(filter)
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Parameters
| Name | Type |
|---|---|
filter | RootFieldFilter |
Defined in
packages/wrap/src/transforms/FilterRootFields.ts:16
Methods
transformSchema
▸ transformSchema(originalWrappingSchema, subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema