Documentation
API Reference
Classes
TransformInterfaceFields

graphql-tools-monorepo / wrap/src / TransformInterfaceFields

Class: TransformInterfaceFields<TContext>

wrap/src.TransformInterfaceFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<TransformInterfaceFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new TransformInterfaceFields<TContext>(interfaceFieldTransformer, fieldNodeTransformer?): TransformInterfaceFields<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
interfaceFieldTransformerFieldTransformer<TContext>
fieldNodeTransformer?FieldNodeTransformer

Returns

TransformInterfaceFields<TContext>

Defined in

packages/wrap/src/transforms/TransformInterfaceFields.ts:16

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformInterfaceFields.ts:58


transformResult

transformResult(originalResult, delegationContext, transformationContext): ExecutionResult<any, any>

Parameters

NameType
originalResultExecutionResult<any, any>
delegationContextDelegationContext<TContext>
transformationContextTransformInterfaceFieldsTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/TransformInterfaceFields.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/TransformInterfaceFields.ts:34