graphql-tools-monorepo / wrap/src / ExtractField
Class: ExtractField<TContext>
wrap/src.ExtractField
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<ExtractFieldTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new ExtractField<TContext
>(«destructured»
): ExtractField
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
«destructured» | Object |
› from | string [] |
› to | string [] |
Returns
ExtractField
<TContext
>
Defined in
packages/wrap/src/transforms/ExtractField.ts:13
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 | ExtractFieldTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest