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

graphql-tools-monorepo / wrap/src / RenameInterfaceFields

Class: RenameInterfaceFields<TContext>

wrap/src.RenameInterfaceFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<RenameInterfaceFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

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

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
renamer(typeName: string, fieldName: string, fieldConfig: GraphQLFieldConfig<any, any, any>) => string

Returns

RenameInterfaceFields<TContext>

Defined in

packages/wrap/src/transforms/RenameInterfaceFields.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>
transformationContextRenameInterfaceFieldsTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/RenameInterfaceFields.ts:35


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/RenameInterfaceFields.ts:28