Documentation
API Reference
Classes
TransformEnumValues

graphql-tools-monorepo / wrap/src / TransformEnumValues

Class: TransformEnumValues<TContext>

wrap/src.TransformEnumValues

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<TransformEnumValuesTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new TransformEnumValues<TContext>(enumValueTransformer, inputValueTransformer?, outputValueTransformer?): TransformEnumValues<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
enumValueTransformerEnumValueTransformer
inputValueTransformer?LeafValueTransformer
outputValueTransformer?LeafValueTransformer

Returns

TransformEnumValues<TContext>

Defined in

packages/wrap/src/transforms/TransformEnumValues.ts:26

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

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformEnumValues.ts:67


transformResult

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

Parameters

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

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/TransformEnumValues.ts:82


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/TransformEnumValues.ts:40