graphql-tools-monorepo / wrap/src / RemoveObjectFieldsWithDirective
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?
): RemoveObjectFieldsWithDirective
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
directiveName | string | RegExp |
args | Record <string , any > |
Returns
RemoveObjectFieldsWithDirective
<TContext
>
Defined in
packages/wrap/src/transforms/RemoveObjectFieldsWithDirective.ts:14
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:19