wrap_src.transformrootfields

Class: TransformRootFields#

wrap/src.TransformRootFields

Hierarchy#

  • TransformRootFields

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new TransformRootFields(rootFieldTransformer: RootFieldTransformer, fieldNodeTransformer?: FieldNodeTransformer): TransformRootFields

Parameters:#

NameType
rootFieldTransformerRootFieldTransformer
fieldNodeTransformer?FieldNodeTransformer

Returns: TransformRootFields

Defined in: packages/wrap/src/transforms/TransformRootFields.ts:14

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/TransformRootFields.ts:55


transformResult#

transformResult(originalResult: ExecutionResult<Record<string, any\>\>, delegationContext: DelegationContext, transformationContext: Record<string, any\>): ExecutionResult<Record<string, any\>\>

Parameters:#

NameType
originalResultExecutionResult<Record<string, any\>\>
delegationContextDelegationContext
transformationContextRecord<string, any\>

Returns: ExecutionResult<Record<string, any\>\>

Defined in: packages/wrap/src/transforms/TransformRootFields.ts:63


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