Documentation
API Reference
Classes
TransformRootFields

graphql-tools-monorepo / wrap/src / TransformRootFields

Class: TransformRootFields<TContext>

wrap/src.TransformRootFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<TransformRootFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new TransformRootFields<TContext>(rootFieldTransformer, fieldNodeTransformer?): TransformRootFields<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

NameType
rootFieldTransformerRootFieldTransformer<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

NameType
originalRequestExecutionRequest<any, any, any, Record<string, any>, any>
delegationContextDelegationContext<TContext>
transformationContextTransformRootFieldsTransformationContext

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

NameType
originalResultExecutionResult<any, any>
delegationContextDelegationContext<TContext>
transformationContextTransformRootFieldsTransformationContext

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/TransformRootFields.ts:78


transformSchema

transformSchema(originalWrappingSchema, subschemaConfig): GraphQLSchema

Parameters

NameType
originalWrappingSchemaGraphQLSchema
subschemaConfigSubschemaConfig<any, any, any, TContext>

Returns

GraphQLSchema

Implementation of

Transform.transformSchema

Defined in

packages/wrap/src/transforms/TransformRootFields.ts:34