graphql-tools-monorepo / wrap/src / TransformObjectFields

Class: TransformObjectFields<TContext>

wrap/src.TransformObjectFields

Type parameters

NameType
TContextRecord<string, any>

Implements

  • Transform<TransformObjectFieldsTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new TransformObjectFields<TContext>(objectFieldTransformer, fieldNodeTransformer?): TransformObjectFields<TContext>

Type parameters

NameType
TContextRecord<string, any>

Parameters

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

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

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

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

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/TransformObjectFields.ts:70


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/TransformObjectFields.ts:34