Docs
API Reference
Classes
RenameObjectFieldArguments

Class: RenameObjectFieldArguments<TContext>

wrap/src.RenameObjectFieldArguments

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RenameObjectFieldArgumentsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RenameObjectFieldArguments<TContext>(renamer)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
renamerRenamerFunction

Defined in

packages/wrap/src/transforms/RenameObjectFieldArguments.ts:20 (opens in a new tab)

Methods

transformRequest

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

Parameters

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameObjectFieldArguments.ts:100 (opens in a new tab)


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/RenameObjectFieldArguments.ts:67 (opens in a new tab)