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