wrap_src.renametypes

Class: RenameTypes#

wrap/src.RenameTypes

Hierarchy#

  • RenameTypes

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new RenameTypes(renamer: (name: string) => string, options?: RenameTypesOptions): RenameTypes

Parameters:#

NameType
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:#

NameType
originalRequestRequest
_delegationContextDelegationContext
_transformationContextRecord<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:#

NameType
originalResultExecutionResult<Record<string, any\>\>
_delegationContextDelegationContext
_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:#

NameType
originalWrappingSchemaGraphQLSchema
_subschemaConfigSubschemaConfig<any, any, any\>
_transformedSchema?GraphQLSchema

Returns: GraphQLSchema

Defined in: packages/wrap/src/transforms/RenameTypes.ts:39