Class: RemoveObjectFieldsWithDirective<TContext>
wrap/src.RemoveObjectFieldsWithDirective
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<RemoveObjectFieldsWithDirectiveTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new RemoveObjectFieldsWithDirective<TContext
>(directiveName
, args?
)
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
directiveName | string | RegExp |
args | Record <string , any > |
Defined in
packages/wrap/src/transforms/RemoveObjectFieldsWithDirective.ts:17 (opens in a new tab)
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/RemoveObjectFieldsWithDirective.ts:22 (opens in a new tab)