Class: MapLeafValues<TContext>
wrap/src.MapLeafValues
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<MapLeafValuesTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new MapLeafValues<TContext
>(inputValueTransformer
, outputValueTransformer
)
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
inputValueTransformer | LeafValueTransformer |
outputValueTransformer | LeafValueTransformer |
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:41 (opens in a new tab)
Methods
transformRequest
▸ transformRequest(originalRequest
, delegationContext
, transformationContext
): ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Parameters
Name | Type |
---|---|
originalRequest | ExecutionRequest <any , any , any , Record <string , any >, any > |
delegationContext | DelegationContext <TContext > |
transformationContext | MapLeafValuesTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:67 (opens in a new tab)
transformResult
▸ transformResult(originalResult
, _delegationContext
, transformationContext
): ExecutionResult
<any
, any
>
Parameters
Name | Type |
---|---|
originalResult | ExecutionResult <any , any > |
_delegationContext | DelegationContext <TContext > |
transformationContext | MapLeafValuesTransformationContext |
Returns
ExecutionResult
<any
, any
>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:98 (opens in a new tab)
transformSchema
▸ transformSchema(originalWrappingSchema
, _subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:49 (opens in a new tab)