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:42
Methods
transformRequest
▸ transformRequest(originalRequest, _delegationContext, transformationContext): ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Parameters
| Name | Type |
|---|---|
originalRequest | ExecutionRequest<Record<string, any>, any, any, Record<string, any>> |
_delegationContext | DelegationContext<TContext> |
transformationContext | MapLeafValuesTransformationContext |
Returns
ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:86
transformResult
▸ transformResult(originalResult, _delegationContext, transformationContext): ExecutionResult<Record<string, any>>
Parameters
| Name | Type |
|---|---|
originalResult | ExecutionResult<Record<string, any>> |
_delegationContext | DelegationContext<TContext> |
transformationContext | MapLeafValuesTransformationContext |
Returns
ExecutionResult<Record<string, any>>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:117
transformSchema
▸ transformSchema(originalWrappingSchema, _subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema