Documentation
API Reference
Classes
Transformer

graphql-tools-monorepo / delegate/src / Transformer

Class: Transformer<TContext>

delegate/src.Transformer

Type parameters

NameType
TContextextends Record<string, any> = Record<string, any>

Table of contents

Constructors

Methods

Constructors

constructor

new Transformer<TContext>(context): Transformer<TContext>

Type parameters

NameType
TContextextends Record<string, any> = Record<string, any>

Parameters

NameType
contextDelegationContext<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

NameType
originalRequestExecutionRequest<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

NameType
originalResultExecutionResult<any, any>

Returns

any

Defined in

packages/delegate/src/Transformer.ts:53