Docs
API Reference
Classes
TransformCompositeFields

Class: TransformCompositeFields<TContext>

wrap/src.TransformCompositeFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<TransformCompositeFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new TransformCompositeFields<TContext>(fieldTransformer, fieldNodeTransformer?, dataTransformer?, errorsTransformer?)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
fieldTransformerFieldTransformer<TContext>
fieldNodeTransformer?FieldNodeTransformer
dataTransformer?DataTransformer
errorsTransformer?ErrorsTransformer

Defined in

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformCompositeFields.ts:83 (opens in a new tab)


transformResult

transformResult(result, _delegationContext, transformationContext): ExecutionResult<any, any>

Parameters

NameType
resultExecutionResult<any, any>
_delegationContextDelegationContext<TContext>
transformationContextTransformCompositeFieldsTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/TransformCompositeFields.ts:95 (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/TransformCompositeFields.ts:57 (opens in a new tab)