Docs
API Reference
Classes
TransformQuery

Class: TransformQuery<TContext>

wrap/src.TransformQuery

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<TransformQueryTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new TransformQuery<TContext>(«destructured»)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
«destructured»Object
› errorPathTransformer?ErrorPathTransformer
› fragments?Record<string, FragmentDefinitionNode>
› pathstring[]
› queryTransformerQueryTransformer
› resultTransformer?ResultTransformer

Defined in

packages/wrap/src/transforms/TransformQuery.ts:33 (opens in a new tab)

Methods

transformRequest

transformRequest(originalRequest, delegationContext, transformationContext): ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Parameters

NameType
originalRequestExecutionRequest<Record<string, any>, any, any, Record<string, any>>
delegationContextDelegationContext<TContext>
transformationContextTransformQueryTransformationContext

Returns

ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformQuery.ts:53 (opens in a new tab)


transformResult

transformResult(originalResult, delegationContext, transformationContext): ExecutionResult<any, any>

Parameters

NameType
originalResultExecutionResult<any, any>
delegationContextDelegationContext<TContext>
transformationContextTransformQueryTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/TransformQuery.ts:95 (opens in a new tab)