graphql-tools-monorepo / wrap/src / FilterObjectFieldDirectives
Class: FilterObjectFieldDirectives<TContext>
wrap/src.FilterObjectFieldDirectives
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<FilterObjectFieldDirectivesTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new FilterObjectFieldDirectives<TContext
>(filter
): FilterObjectFieldDirectives
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema
Defined in
packages/wrap/src/transforms/FilterObjectFieldDirectives.ts:17