Documentation
API Reference
Classes
RenameRootTypes

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

Type parameters

NameType
TContextRecord<string, any>

Parameters

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

Returns

RenameRootTypes<TContext>

Defined in

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameRootTypes.ts:45


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


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