Docs
API Reference
Classes
RenameTypes

Class: RenameTypes<TContext>

wrap/src.RenameTypes

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RenameTypesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RenameTypes<TContext>(renamer, options?)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
renamer(name: string) => undefined | string
options?RenameTypesOptions

Defined in

packages/wrap/src/transforms/RenameTypes.ts:34 (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>
_transformationContextRenameTypesTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameTypes.ts:79 (opens in a new tab)


transformResult

transformResult(originalResult, _delegationContext, _transformationContext?): ExecutionResult<any, any>

Parameters

NameType
originalResultExecutionResult<any, any>
_delegationContextDelegationContext<TContext>
_transformationContext?RenameTypesTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/RenameTypes.ts:105 (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/RenameTypes.ts:43 (opens in a new tab)