wrap_src.wrapquery

Class: WrapQuery#

wrap/src.WrapQuery

Hierarchy#

  • WrapQuery

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new WrapQuery(path: string[], wrapper: QueryWrapper, extractor: (result: any) => any): WrapQuery

Parameters:#

NameType
pathstring[]
wrapperQueryWrapper
extractor(result: any) => any

Returns: WrapQuery

Defined in: packages/wrap/src/transforms/WrapQuery.ts:12

Methods#

transformRequest#

transformRequest(originalRequest: Request, _delegationContext: DelegationContext, _transformationContext: Record<string, any\>): Request

Parameters:#

NameType
originalRequestRequest
_delegationContextDelegationContext
_transformationContextRecord<string, any\>

Returns: Request

Defined in: packages/wrap/src/transforms/WrapQuery.ts:20


transformResult#

transformResult(originalResult: ExecutionResult<Record<string, any\>\>, _delegationContext: DelegationContext, _transformationContext: Record<string, any\>): ExecutionResult<Record<string, any\>\>

Parameters:#

NameType
originalResultExecutionResult<Record<string, any\>\>
_delegationContextDelegationContext
_transformationContextRecord<string, any\>

Returns: ExecutionResult<Record<string, any\>\>

Defined in: packages/wrap/src/transforms/WrapQuery.ts:61