graphql-tools-monorepo / wrap/src / FilterRootFields
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
): FilterRootFields
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
filter | RootFieldFilter |
Returns
FilterRootFields
<TContext
>
Defined in
packages/wrap/src/transforms/FilterRootFields.ts:13
Methods
transformSchema
▸ transformSchema(originalWrappingSchema
, subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema