graphql-tools-monorepo / wrap/src / TransformCompositeFields
Class: TransformCompositeFields<TContext>
wrap/src.TransformCompositeFields
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<TransformCompositeFieldsTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new TransformCompositeFields<TContext
>(fieldTransformer
, fieldNodeTransformer?
, dataTransformer?
, errorsTransformer?
): TransformCompositeFields
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
fieldTransformer | FieldTransformer <TContext > |
fieldNodeTransformer? | FieldNodeTransformer |
dataTransformer? | DataTransformer |
errorsTransformer? | ErrorsTransformer |
Returns
TransformCompositeFields
<TContext
>
Defined in
packages/wrap/src/transforms/TransformCompositeFields.ts:43
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 | TransformCompositeFieldsTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/TransformCompositeFields.ts:92
transformResult
▸ transformResult(result
, _delegationContext
, transformationContext
): ExecutionResult
<any
, any
>
Parameters
Name | Type |
---|---|
result | ExecutionResult <any , any > |
_delegationContext | DelegationContext <TContext > |
transformationContext | TransformCompositeFieldsTransformationContext |
Returns
ExecutionResult
<any
, any
>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/TransformCompositeFields.ts:104
transformSchema
▸ transformSchema(originalWrappingSchema
, _subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema