graphql-tools-monorepo / wrap/src / RenameRootTypes
Class: RenameRootTypes<TContext>
wrap/src.RenameRootTypes
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<RenameRootTypesTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new RenameRootTypes<TContext
>(renamer
): RenameRootTypes
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
renamer | (name : string ) => undefined | string |
Returns
RenameRootTypes
<TContext
>
Defined in
packages/wrap/src/transforms/RenameRootTypes.ts:21
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 | RenameRootTypesTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/RenameRootTypes.ts:45
transformResult
▸ transformResult(originalResult
, _delegationContext
, _transformationContext?
): ExecutionResult
<any
, any
>
Parameters
Name | Type |
---|---|
originalResult | ExecutionResult <any , any > |
_delegationContext | DelegationContext <TContext > |
_transformationContext? | RenameRootTypesTransformationContext |
Returns
ExecutionResult
<any
, any
>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/RenameRootTypes.ts:70
transformSchema
▸ transformSchema(originalWrappingSchema
, _subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema