Interface: WeaverContext

Properties

configs

configs: Map<string | symbol, WeaverConfig>

Defined in

packages/core/src/schema/weaver-context.ts:25


deleteConfig()

deleteConfig: <TConfig>(key) => void

Type Parameters

TConfig extends WeaverConfig

Parameters

key: TConfig[typeof WEAVER_CONFIG]

Returns

void

Defined in

packages/core/src/schema/weaver-context.ts:30


getConfig()

getConfig: <TConfig>(key) => undefined | TConfig

Type Parameters

TConfig extends WeaverConfig

Parameters

key: TConfig[typeof WEAVER_CONFIG]

Returns

undefined | TConfig

Defined in

packages/core/src/schema/weaver-context.ts:26


id

id: number

Defined in

packages/core/src/schema/weaver-context.ts:17


inputMap

inputMap: Map<GraphQLInterfaceType | GraphQLObjectType<any, any>, GraphQLInputObjectType>

Defined in

packages/core/src/schema/weaver-context.ts:20


interfaceMap

interfaceMap: Map<GraphQLObjectType<any, any>, GraphQLInterfaceType>

Defined in

packages/core/src/schema/weaver-context.ts:24


loomObjectMap

loomObjectMap: Map<GraphQLObjectType<any, any>, LoomObjectType>

Defined in

packages/core/src/schema/weaver-context.ts:18


loomUnionMap

loomUnionMap: Map<GraphQLUnionType, GraphQLUnionType>

Defined in

packages/core/src/schema/weaver-context.ts:19


namedTypes

namedTypes: Map<string, GraphQLOutputType>

Defined in

packages/core/src/schema/weaver-context.ts:33


names

names: WeakMap<object, string>

Defined in

packages/core/src/schema/weaver-context.ts:38


vendorWeavers

vendorWeavers: Map<string, SchemaVendorWeaver>

Defined in

packages/core/src/schema/weaver-context.ts:39

Methods

getNamedType()

getNamedType<T>(name): undefined | T

Type Parameters

T extends GraphQLOutputType

Parameters

name: string

Returns

undefined | T

Defined in

packages/core/src/schema/weaver-context.ts:37


memoNamedType()

memoNamedType<TGraphQLType>(gqlType): TGraphQLType

Type Parameters

TGraphQLType extends GraphQLOutputType = GraphQLOutputType

Parameters

gqlType: TGraphQLType

Returns

TGraphQLType

Defined in

packages/core/src/schema/weaver-context.ts:34


setConfig()

setConfig<TConfig>(config): void

Type Parameters

TConfig extends WeaverConfig

Parameters

config: TConfig

Returns

void

Defined in

packages/core/src/schema/weaver-context.ts:29