Docs
API Reference
Classes
RenameRootTypes

Class: RenameRootTypes<TContext>

wrap/src.RenameRootTypes

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RenameRootTypesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RenameRootTypes<TContext>(renamer)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
renamer(name: string) => undefined | string

Defined in

packages/wrap/src/transforms/RenameRootTypes.ts:16 (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>
_transformationContextRenameRootTypesTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameRootTypes.ts:40 (opens in a new tab)


transformResult

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

Parameters

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

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/RenameRootTypes.ts:65 (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/RenameRootTypes.ts:22 (opens in a new tab)