graphql-tools-monorepo / wrap/src / TransformQuery
Class: TransformQuery<TContext>
wrap/src.TransformQuery
Type parameters
| Name | Type | 
|---|---|
TContext | Record<string, any> | 
Implements
Transform<TransformQueryTransformationContext,TContext>
Table of contents
Constructors
Methods
Constructors
constructor
• new TransformQuery<TContext>(«destructured»): TransformQuery<TContext>
Type parameters
| Name | Type | 
|---|---|
TContext | Record<string, any> | 
Parameters
| Name | Type | 
|---|---|
«destructured» | Object | 
› errorPathTransformer? | ErrorPathTransformer | 
› fragments? | Record<string, FragmentDefinitionNode> | 
› path | string[] | 
› queryTransformer | QueryTransformer | 
› resultTransformer? | ResultTransformer | 
Returns
TransformQuery<TContext>
Defined in
packages/wrap/src/transforms/TransformQuery.ts:31
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 | TransformQueryTransformationContext | 
Returns
ExecutionRequest<any, any, any, Record<string, any>, any>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/TransformQuery.ts:51
transformResult
▸ transformResult(originalResult, delegationContext, transformationContext): ExecutionResult<any, any>
Parameters
| Name | Type | 
|---|---|
originalResult | ExecutionResult<any, any> | 
delegationContext | DelegationContext<TContext> | 
transformationContext | TransformQueryTransformationContext | 
Returns
ExecutionResult<any, any>
Implementation of
Transform.transformResult