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