Class: RenameObjectFields<TContext>
wrap/src.RenameObjectFields
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Implements
Transform<RenameObjectFieldsTransformationContext,TContext>
Table of contents
Constructors
Methods
Constructors
constructor
• new RenameObjectFields<TContext>(renamer)
Type parameters
| Name | Type |
|---|---|
TContext | Record<string, any> |
Parameters
| Name | Type |
|---|---|
renamer | (typeName: string, fieldName: string, fieldConfig: GraphQLFieldConfig<any, any, any>) => string |
Defined in
packages/wrap/src/transforms/RenameObjectFields.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 | RenameObjectFieldsTransformationContext |
Returns
ExecutionRequest<Record<string, any>, any, any, Record<string, any>>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/RenameObjectFields.ts:32
transformSchema
▸ transformSchema(originalWrappingSchema, subschemaConfig): GraphQLSchema
Parameters
| Name | Type |
|---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig<any, any, any, TContext> |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema