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

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

Type parameters

NameType
TContextRecord<string, any>

Parameters

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

Returns

TransformCompositeFields<TContext>

Defined in

packages/wrap/src/transforms/TransformCompositeFields.ts:43

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformCompositeFields.ts:92


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


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