Docs
API Reference
Classes
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?)

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
enumValueTransformerEnumValueTransformer
inputValueTransformer?LeafValueTransformer
outputValueTransformer?LeafValueTransformer

Defined in

packages/wrap/src/transforms/TransformEnumValues.ts:30 (opens in a new tab)

Methods

transformRequest

transformRequest(originalRequest, delegationContext, transformationContext): ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Parameters

NameType
originalRequestExecutionRequest<Record<string, any>, any, any, Record<string, any>>
delegationContextDelegationContext<TContext>
transformationContextTransformEnumValuesTransformationContext

Returns

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

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/TransformEnumValues.ts:67 (opens in a new tab)


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:78 (opens in a new tab)


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:44 (opens in a new tab)