wrap_src.wraptype
#
Class: WrapTypewrap/src.WrapType
#
Hierarchy- WrapType
#
Implements#
Table of contents#
Constructors#
Methods#
Constructors#
constructor+ new WrapType(outerTypeName
: string, innerTypeName
: string, fieldName
: string): WrapType
#
Parameters:Name | Type |
---|---|
outerTypeName | string |
innerTypeName | string |
fieldName | string |
Returns: WrapType
Defined in: packages/wrap/src/transforms/WrapType.ts:10
#
Methods#
transformRequestâ–¸ transformRequest(originalRequest
: Request, delegationContext
: DelegationContext, transformationContext
: Record<string, any\>): Request
#
Parameters:Name | Type |
---|---|
originalRequest | Request |
delegationContext | DelegationContext |
transformationContext | Record<string, any\> |
Returns: Request
Defined in: packages/wrap/src/transforms/WrapType.ts:24
#
transformResultâ–¸ transformResult(originalResult
: ExecutionResult<Record<string, any\>\>, delegationContext
: DelegationContext, transformationContext
: Record<string, any\>): ExecutionResult<Record<string, any\>\>
#
Parameters:Name | Type |
---|---|
originalResult | ExecutionResult<Record<string, any\>\> |
delegationContext | DelegationContext |
transformationContext | Record<string, any\> |
Returns: ExecutionResult<Record<string, any\>\>
Defined in: packages/wrap/src/transforms/WrapType.ts:32
#
transformSchemaâ–¸ transformSchema(originalWrappingSchema
: GraphQLSchema, subschemaConfig
: SubschemaConfig<any, any, any\>, transformedSchema?
: GraphQLSchema): GraphQLSchema
#
Parameters:Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig<any, any, any\> |
transformedSchema? | GraphQLSchema |
Returns: GraphQLSchema
Defined in: packages/wrap/src/transforms/WrapType.ts:16