graphql-tools-monorepo / delegate/src / Transformer
Class: Transformer<TContext>
delegate/src.Transformer
Type parameters
Name | Type |
---|---|
TContext | extends Record <string , any > = Record <string , any > |
Table of contents
Constructors
Methods
Constructors
constructor
• new Transformer<TContext
>(context
): Transformer
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | extends Record <string , any > = Record <string , any > |
Parameters
Name | Type |
---|---|
context | DelegationContext <TContext > |
Returns
Transformer
<TContext
>
Defined in
packages/delegate/src/Transformer.ts:16
Methods
transformRequest
▸ transformRequest(originalRequest
): ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Parameters
Name | Type |
---|---|
originalRequest | ExecutionRequest <any , any , any , Record <string , any >, any > |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Defined in
packages/delegate/src/Transformer.ts:29
transformResult
▸ transformResult(originalResult
): any
Parameters
Name | Type |
---|---|
originalResult | ExecutionResult <any , any > |
Returns
any