graphql-tools-monorepo / wrap/src / TransformObjectFields
Class: TransformObjectFields<TContext>
wrap/src.TransformObjectFields
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<TransformObjectFieldsTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new TransformObjectFields<TContext
>(objectFieldTransformer
, fieldNodeTransformer?
): TransformObjectFields
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
objectFieldTransformer | FieldTransformer <TContext > |
fieldNodeTransformer? | FieldNodeTransformer |
Returns
TransformObjectFields
<TContext
>
Defined in
packages/wrap/src/transforms/TransformObjectFields.ts:16
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 | TransformObjectFieldsTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/TransformObjectFields.ts:58
transformResult
▸ transformResult(originalResult
, delegationContext
, transformationContext
): ExecutionResult
<any
, any
>
Parameters
Name | Type |
---|---|
originalResult | ExecutionResult <any , any > |
delegationContext | DelegationContext <TContext > |
transformationContext | TransformObjectFieldsTransformationContext |
Returns
ExecutionResult
<any
, any
>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/TransformObjectFields.ts:70
transformSchema
▸ transformSchema(originalWrappingSchema
, subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema