Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Classes
RenameInputObjectFields

graphql-tools-monorepo / wrap/src / RenameInputObjectFields

Class: RenameInputObjectFields<TContext>

wrap/src.RenameInputObjectFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RenameInputObjectFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RenameInputObjectFields<TContext>(renamer): RenameInputObjectFields<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
renamerRenamerFunction

Returns

RenameInputObjectFields<TContext>

Defined in

packages/wrap/src/transforms/RenameInputObjectFields.ts:21

Methods

transformRequest

transformRequest(originalRequest, delegationContext, transformationContext): ExecutionRequest<any, any, any, Record<string, any>, any>

Parameters

NameType
originalRequestExecutionRequest<any, any, any, Record<string, any>, any>
delegationContextDelegationContext<TContext>
transformationContextRenameInputObjectFieldsTransformationContext

Returns

ExecutionRequest<any, any, any, Record<string, any>, any>

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameInputObjectFields.ts:83


transformSchema

transformSchema(originalWrappingSchema, subschemaConfig): GraphQLSchema

Parameters

NameType
originalWrappingSchemaGraphQLSchema
subschemaConfigSubschemaConfig<any, any, any, TContext>

Returns

GraphQLSchema

Implementation of

Transform.transformSchema

Defined in

packages/wrap/src/transforms/RenameInputObjectFields.ts:55