Documentation
API Reference
Classes
MapFields

graphql-tools-monorepo / wrap/src / MapFields

Class: MapFields<TContext>

wrap/src.MapFields

Type parameters

Name
TContext

Implements

  • Transform<MapFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new MapFields<TContext>(fieldNodeTransformerMap, objectValueTransformerMap?, errorsTransformer?): MapFields<TContext>

Type parameters

Name
TContext

Parameters

NameType
fieldNodeTransformerMapFieldNodeMappers
objectValueTransformerMap?ObjectValueTransformerMap
errorsTransformer?ErrorsTransformer

Returns

MapFields<TContext>

Defined in

packages/wrap/src/transforms/MapFields.ts:17

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>
transformationContextMapFieldsTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/MapFields.ts:86


transformResult

transformResult(originalResult, delegationContext, transformationContext): ExecutionResult<any, any>

Parameters

NameType
originalResultExecutionResult<any, any>
delegationContextDelegationContext<TContext>
transformationContextMapFieldsTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/MapFields.ts:98


transformSchema

transformSchema(originalWrappingSchema, subschemaConfig): GraphQLSchema

Parameters

NameType
originalWrappingSchemaGraphQLSchema
subschemaConfigSubschemaConfig<any, any, any, TContext>

Returns

GraphQLSchema

Implementation of

Transform.transformSchema

Defined in

packages/wrap/src/transforms/MapFields.ts:37