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

graphql-tools-monorepo / wrap/src / 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?): RenameTypes<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

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

Returns

RenameTypes<TContext>

Defined in

packages/wrap/src/transforms/RenameTypes.ts:32

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>
_transformationContextRenameTypesTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameTypes.ts:79


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


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:41