graphql-tools-monorepo / wrap/src / MapLeafValues
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): MapLeafValues<TContext>
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Parameters
| Name | Type |
|---|---|
inputValueTransformer | LeafValueTransformer |
outputValueTransformer | LeafValueTransformer |
Returns
MapLeafValues<TContext>
Defined in
packages/wrap/src/transforms/MapLeafValues.ts:39
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:69
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:104
transformSchema
▸ transformSchema(originalWrappingSchema, _subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema