wrap_src.renameinterfacefields

Class: RenameInterfaceFields#

wrap/src.RenameInterfaceFields

Hierarchy#

  • RenameInterfaceFields

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new RenameInterfaceFields(renamer: (typeName: string, fieldName: string, fieldConfig: GraphQLFieldConfig<any, any, { [argName: string]: any; }\>) => string): RenameInterfaceFields

Parameters:#

NameType
renamer(typeName: string, fieldName: string, fieldConfig: GraphQLFieldConfig<any, any, { [argName: string]: any; }\>) => string

Returns: RenameInterfaceFields

Defined in: packages/wrap/src/transforms/RenameInterfaceFields.ts:10

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/RenameInterfaceFields.ts:29


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/RenameInterfaceFields.ts:21