Class: WrapQuery<TContext>
wrap/src.WrapQuery
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Implements
Transform<WrapQueryTransformationContext,TContext>
Table of contents
Constructors
Methods
Constructors
constructor
• new WrapQuery<TContext>(path, wrapper, extractor)
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Parameters
| Name | Type |
|---|---|
path | string[] |
wrapper | QueryWrapper |
extractor | (result: any) => any |
Defined in
packages/wrap/src/transforms/WrapQuery.ts:18
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 | WrapQueryTransformationContext |
Returns
ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/WrapQuery.ts:24
transformResult
▸ transformResult(originalResult, _delegationContext, _transformationContext): ExecutionResult<Record<string, any>>
Parameters
| Name | Type |
|---|---|
originalResult | ExecutionResult<Record<string, any>> |
_delegationContext | DelegationContext<TContext> |
_transformationContext | WrapQueryTransformationContext |
Returns
ExecutionResult<Record<string, any>>
Implementation of
Transform.transformResult