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
Name | Type |
---|---|
fieldNodeTransformerMap | FieldNodeMappers |
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
Name | Type |
---|---|
originalRequest | ExecutionRequest <any , any , any , Record <string , any >, any > |
delegationContext | DelegationContext <TContext > |
transformationContext | MapFieldsTransformationContext |
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
Name | Type |
---|---|
originalResult | ExecutionResult <any , any > |
delegationContext | DelegationContext <TContext > |
transformationContext | MapFieldsTransformationContext |
Returns
ExecutionResult
<any
, any
>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/MapFields.ts:98
transformSchema
▸ transformSchema(originalWrappingSchema
, subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema