graphql-tools-monorepo / wrap/src / RenameInputObjectFields
Class: RenameInputObjectFields<TContext>
wrap/src.RenameInputObjectFields
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Implements
Transform
<RenameInputObjectFieldsTransformationContext
,TContext
>
Table of contents
Constructors
Methods
Constructors
constructor
• new RenameInputObjectFields<TContext
>(renamer
): RenameInputObjectFields
<TContext
>
Type parameters
Name | Type |
---|---|
TContext | Record <string , any > |
Parameters
Name | Type |
---|---|
renamer | RenamerFunction |
Returns
RenameInputObjectFields
<TContext
>
Defined in
packages/wrap/src/transforms/RenameInputObjectFields.ts:21
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 | RenameInputObjectFieldsTransformationContext |
Returns
ExecutionRequest
<any
, any
, any
, Record
<string
, any
>, any
>
Implementation of
Transform.transformRequest
Defined in
packages/wrap/src/transforms/RenameInputObjectFields.ts:83
transformSchema
▸ transformSchema(originalWrappingSchema
, subschemaConfig
): GraphQLSchema
Parameters
Name | Type |
---|---|
originalWrappingSchema | GraphQLSchema |
subschemaConfig | SubschemaConfig <any , any , any , TContext > |
Returns
GraphQLSchema
Implementation of
Transform.transformSchema