Interface: GlobalWeaverContext

Extends

Properties

configs?

optional configs: Map<string | symbol, WeaverConfig>

Inherited from

Partial.configs

Defined in

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


deleteConfig()?

optional deleteConfig: <TConfig>(key) => void

Type Parameters

TConfig extends WeaverConfig

Parameters

key: TConfig[typeof WEAVER_CONFIG]

Returns

void

Inherited from

Partial.deleteConfig

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

Inherited from

Pick.getConfig

Defined in

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


GraphQLTypes

GraphQLTypes: WeakMap<object, GraphQLOutputType>

Defined in

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


id?

optional id: number

Inherited from

Partial.id

Defined in

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


inputMap?

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

Inherited from

Partial.inputMap

Defined in

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


interfaceMap?

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

Inherited from

Partial.interfaceMap

Defined in

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


loomObjectMap?

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

Inherited from

Partial.loomObjectMap

Defined in

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


loomUnionMap?

optional loomUnionMap: Map<GraphQLUnionType, GraphQLUnionType>

Inherited from

Partial.loomUnionMap

Defined in

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


namedTypes?

optional namedTypes: Map<string, GraphQLOutputType>

Inherited from

Partial.namedTypes

Defined in

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


names

names: WeakMap<object, string>

Inherited from

Pick.names

Defined in

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


value?

optional value: WeaverContext

Defined in

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


vendorWeavers?

optional vendorWeavers: Map<string, SchemaVendorWeaver>

Inherited from

Partial.vendorWeavers

Defined in

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

Methods

getGraphQLType()

getGraphQLType<TGraphQLType>(origin): undefined | TGraphQLType

Type Parameters

TGraphQLType extends GraphQLOutputType = GraphQLOutputType

Parameters

origin: object

Returns

undefined | TGraphQLType

Defined in

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


getNamedType()

getNamedType<T>(name): undefined | T

Type Parameters

T extends GraphQLOutputType

Parameters

name: string

Returns

undefined | T

Inherited from

Pick.getNamedType

Defined in

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


memoGraphQLType()

memoGraphQLType<TGraphQLType>(origin, gqlType): TGraphQLType

Type Parameters

TGraphQLType extends GraphQLOutputType = GraphQLOutputType

Parameters

origin: object

gqlType: TGraphQLType

Returns

TGraphQLType

Defined in

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


memoNamedType()

memoNamedType<TGraphQLType>(gqlType): TGraphQLType

Type Parameters

TGraphQLType extends GraphQLOutputType = GraphQLOutputType

Parameters

gqlType: TGraphQLType

Returns

TGraphQLType

Inherited from

Pick.memoNamedType

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

Inherited from

Pick.setConfig

Defined in

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


useConfig()

useConfig<TConfig, TCallback>(config, callback): ReturnType<TCallback>

Type Parameters

TConfig extends WeaverConfig

TCallback extends () => any

Parameters

config: TConfig

callback: TCallback

Returns

ReturnType<TCallback>

Defined in

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