The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Skip to main content

Class: default

transforms/encapsulate/src.default

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

new default(options)

Parameters#

NameType
optionsMeshTransformOptions<EncapsulateTransformObject\>

Defined in#

packages/transforms/encapsulate/src/index.ts:20

Methods#

generateSchemaTransforms#

generateSchemaTransforms(originalWrappingSchema): Generator<Transform<any, Record<string, any\>\>, void, unknown\>

Parameters#

NameType
originalWrappingSchemaGraphQLSchema

Returns#

Generator<Transform<any, Record<string, any\>\>, void, unknown\>

Defined in#

packages/transforms/encapsulate/src/index.ts:43


transformRequest#

transformRequest(originalRequest, delegationContext, transformationContext): ExecutionRequest<Record<string, any\>, any, any, Record<string, any\>\>

Parameters#

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

Returns#

ExecutionRequest<Record<string, any\>, any, any, Record<string, any\>\>

Implementation of#

MeshTransform.transformRequest

Defined in#

packages/transforms/encapsulate/src/index.ts:61


transformResult#

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

Parameters#

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

Returns#

ExecutionResult<Record<string, any\>\>

Implementation of#

MeshTransform.transformResult

Defined in#

packages/transforms/encapsulate/src/index.ts:69


transformSchema#

transformSchema(originalWrappingSchema, subschemaConfig, transformedSchema?): GraphQLSchema

Parameters#

NameType
originalWrappingSchemaGraphQLSchema
subschemaConfigSubschemaConfig<any, any, any, Record<string, any\>\>
transformedSchema?GraphQLSchema

Returns#

GraphQLSchema

Implementation of#

MeshTransform.transformSchema

Defined in#

packages/transforms/encapsulate/src/index.ts:52