• Docs
  • API Reference
  • Classes
  • 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)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
inputValueTransformerLeafValueTransformer
outputValueTransformerLeafValueTransformer

Defined in

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

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

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


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


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