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