Docs
API Reference
Classes
WrapType

Class: WrapType<TContext>

wrap/src.WrapType

Type parameters

NameType
TContextextends Record<string, any> = Record<string, any>

Implements

  • Transform<WrapTypeTransformationContext, TContext>

Table of contents

Constructors

Methods

Constructors

constructor

new WrapType<TContext>(outerTypeName, innerTypeName, fieldName)

Type parameters

NameType
TContextextends Record<string, any> = Record<string, any>

Parameters

NameType
outerTypeNamestring
innerTypeNamestring
fieldNamestring

Defined in

packages/wrap/src/transforms/WrapType.ts:16 (opens in a new tab)

Methods

transformRequest

transformRequest(originalRequest, delegationContext, transformationContext): ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Parameters

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

Returns

ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Implementation of

Transform.transformRequest

Defined in

packages/wrap/src/transforms/WrapType.ts:27 (opens in a new tab)


transformResult

transformResult(originalResult, delegationContext, transformationContext): ExecutionResult<any, any>

Parameters

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

Returns

ExecutionResult<any, any>

Implementation of

Transform.transformResult

Defined in

packages/wrap/src/transforms/WrapType.ts:35 (opens in a new tab)


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/WrapType.ts:20 (opens in a new tab)