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

graphql-tools-monorepo / wrap/src / MapLeafValues

Class: MapLeafValues<TContext>

wrap/src.MapLeafValues

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<MapLeafValuesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new MapLeafValues<TContext>(inputValueTransformer, outputValueTransformer): MapLeafValues<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
inputValueTransformerLeafValueTransformer
outputValueTransformerLeafValueTransformer

Returns

MapLeafValues<TContext>

Defined in

packages/wrap/src/transforms/MapLeafValues.ts:38

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/MapLeafValues.ts:68


transformResult

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

Parameters

NameType
originalResultExecutionResult<any, any>
_delegationContextDelegationContext<TContext>
transformationContextMapLeafValuesTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/MapLeafValues.ts:103


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/MapLeafValues.ts:49