wrap_src.renametypes
#
Class: RenameTypeswrap/src.RenameTypes
#
Hierarchy- RenameTypes
#
Implements#
Table of contents#
Constructors#
Methods#
Constructors#
constructor+ new RenameTypes(renamer
: (name
: string) => string, options?
: RenameTypesOptions): RenameTypes
#
Parameters:Name | Type |
---|---|
renamer | (name : string) => string |
options? | RenameTypesOptions |
Returns: RenameTypes
Defined in: packages/wrap/src/transforms/RenameTypes.ts:28
#
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/RenameTypes.ts:68
#
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/RenameTypes.ts:94
#
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/RenameTypes.ts:39