graphql-tools-monorepo / wrap/src / RenameObjectFields
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
): RenameObjectFields
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
renamer | (typeName : string , fieldName : string , fieldConfig : GraphQLFieldConfig <any , any , any >) => string |
Returns
RenameObjectFields
<TContext
>
Defined in
packages/wrap/src/transforms/RenameObjectFields.ts:13
Methods
transformRequest
▸ transformRequest(originalRequest
, delegationContext
, transformationContext
): ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Parameters
Name | Type |
---|---|
originalRequest | ExecutionRequest <any , any , any , Record <string , any >, any > |
delegationContext | DelegationContext <TContext > |
transformationContext | RenameObjectFieldsTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/RenameObjectFields.ts:35
transformSchema
▸ transformSchema(originalWrappingSchema
, subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema