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)
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Parameters
| Name | Type |
|---|---|
renamer | (name: string) => undefined | string |
Defined in
packages/wrap/src/transforms/RenameRootTypes.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 | RenameRootTypesTransformationContext |
Returns
ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/RenameRootTypes.ts:40
transformResult
▸ transformResult(originalResult, _delegationContext, _transformationContext?): ExecutionResult<Record<string, any>>
Parameters
| Name | Type |
|---|---|
originalResult | ExecutionResult<Record<string, any>> |
_delegationContext | DelegationContext<TContext> |
_transformationContext? | RenameRootTypesTransformationContext |
Returns
ExecutionResult<Record<string, any>>
Implementation of
Transform.transformResult
Defined in
packages/wrap/src/transforms/RenameRootTypes.ts:65
transformSchema
▸ transformSchema(originalWrappingSchema, _subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
_subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema