wrap_src.renameobjectfields

Class: RenameObjectFields#

wrap/src.RenameObjectFields

Hierarchy#

  • RenameObjectFields

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

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

Parameters:#

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

Returns: RenameObjectFields

Defined in: packages/wrap/src/transforms/RenameObjectFields.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/RenameObjectFields.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/RenameObjectFields.ts:21