Documentation
API Reference
Classes
RenameRootFields

graphql-tools-monorepo / wrap/src / RenameRootFields

Class: RenameRootFields<TContext>

wrap/src.RenameRootFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RenameRootFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new RenameRootFields<TContext>(renamer): RenameRootFields<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
renamer(operation: "Query" | "Mutation" | "Subscription", name: string, fieldConfig: GraphQLFieldConfig<any, any, any>) => string

Returns

RenameRootFields<TContext>

Defined in

packages/wrap/src/transforms/RenameRootFields.ts:13

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameRootFields.ts:36


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/RenameRootFields.ts:29