Documentation
API Reference
Classes
TransformQuery

graphql-tools-monorepo / wrap/src / 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»): TransformQuery<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

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

Returns

TransformQuery<TContext>

Defined in

packages/wrap/src/transforms/TransformQuery.ts:43

Methods

transformRequest

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

Parameters

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformQuery.ts:63


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:114