Documentation
API Reference
Classes
ExtractField

graphql-tools-monorepo / wrap/src / ExtractField

Class: ExtractField<TContext>

wrap/src.ExtractField

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<ExtractFieldTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new ExtractField<TContext>(«destructured»): ExtractField<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
«destructured»Object
› fromstring[]
› tostring[]

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

NameType
originalRequestExecutionRequest<any, any, any, Record<string, any>, any>
_delegationContextDelegationContext<TContext>
_transformationContextExtractFieldTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/ExtractField.ts:18