wrap_src.removeobjectfieldswithdirective

Class: RemoveObjectFieldsWithDirective#

wrap/src.RemoveObjectFieldsWithDirective

Hierarchy#

  • RemoveObjectFieldsWithDirective

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new RemoveObjectFieldsWithDirective(directiveName: string | RegExp, args?: Record<string, any\>): RemoveObjectFieldsWithDirective

Parameters:#

NameTypeDefault value
directiveNamestringRegExp
argsRecord<string, any\>...

Returns: RemoveObjectFieldsWithDirective

Defined in: packages/wrap/src/transforms/RemoveObjectFieldsWithDirective.ts:11

Methods#

transformSchema#

transformSchema(originalWrappingSchema: GraphQLSchema, subschemaConfig: SubschemaConfig<any, any, any\>, transformedSchema?: GraphQLSchema): GraphQLSchema

Parameters:#

NameType
originalWrappingSchemaGraphQLSchema
subschemaConfigSubschemaConfig<any, any, any\>
transformedSchema?GraphQLSchema

Returns: GraphQLSchema

Defined in: packages/wrap/src/transforms/RemoveObjectFieldsWithDirective.ts:18