graphql-tools-monorepo / wrap/src / TransformEnumValues
Class: TransformEnumValues<TContext>
wrap/src.TransformEnumValues
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<TransformEnumValuesTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new TransformEnumValues<TContext
>(enumValueTransformer
, inputValueTransformer?
, outputValueTransformer?
): TransformEnumValues
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
enumValueTransformer | EnumValueTransformer |
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
Name | Type |
---|---|
originalRequest | ExecutionRequest <any , any , any , Record <string , any >, any > |
delegationContext | DelegationContext <TContext > |
transformationContext | TransformEnumValuesTransformationContext |
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
Name | Type |
---|---|
originalResult | ExecutionResult <any , any > |
delegationContext | DelegationContext <TContext > |
transformationContext | TransformEnumValuesTransformationContext |
Returns
ExecutionResult
<any
, any
>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/TransformEnumValues.ts:82
transformSchema
▸ transformSchema(originalWrappingSchema
, subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema