wrap_src.wrapfields

Class: WrapFields#

wrap/src.WrapFields

Hierarchy#

  • WrapFields

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new WrapFields(outerTypeName: string, wrappingFieldNames: string[], wrappingTypeNames: string[], fieldNames?: string[], prefix?: string): WrapFields

Parameters:#

NameTypeDefault value
outerTypeNamestring-
wrappingFieldNamesstring[]-
wrappingTypeNamesstring[]-
fieldNames?string[]-
prefixstring'gqtld'

Returns: WrapFields

Defined in: packages/wrap/src/transforms/WrapFields.ts:39

Methods#

transformRequest#

transformRequest(originalRequest: Request, delegationContext: DelegationContext, transformationContext: WrapFieldsTransformationContext): Request

Parameters:#

NameType
originalRequestRequest
delegationContextDelegationContext
transformationContextWrapFieldsTransformationContext

Returns: Request

Defined in: packages/wrap/src/transforms/WrapFields.ts:159


transformResult#

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

Parameters:#

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

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

Defined in: packages/wrap/src/transforms/WrapFields.ts:169


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/WrapFields.ts:81