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