Class: WrapType<TContext>
wrap/src.WrapType
Type parameters
| Name | Type |
|---|---|
TContext | extends 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
| Name | Type |
|---|---|
TContext | extends Record<string, any> = Record<string, any> |
Parameters
| Name | Type |
|---|---|
outerTypeName | string |
innerTypeName | string |
fieldName | string |
Defined in
packages/wrap/src/transforms/WrapType.ts:16
Methods
transformRequest
▸ transformRequest(originalRequest, delegationContext, transformationContext): ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Parameters
| Name | Type |
|---|---|
originalRequest | ExecutionRequest<Record<string, any>, any, any, Record<string, any>> |
delegationContext | DelegationContext<TContext> |
transformationContext | WrapTypeTransformationContext |
Returns
ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/WrapType.ts:27
transformResult
▸ transformResult(originalResult, delegationContext, transformationContext): ExecutionResult<Record<string, any>>
Parameters
| Name | Type |
|---|---|
originalResult | ExecutionResult<Record<string, any>> |
delegationContext | DelegationContext<TContext> |
transformationContext | WrapTypeTransformationContext |
Returns
ExecutionResult<Record<string, any>>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/WrapType.ts:35
transformSchema
▸ transformSchema(originalWrappingSchema, subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema