Class: FederatedSchemaWeaver

Extends

Constructors

new FederatedSchemaWeaver()

new FederatedSchemaWeaver(__namedParameters, context?): FederatedSchemaWeaver

Parameters

__namedParameters: SchemaWeaverParameters = {}

context?: WeaverContext

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.constructor

Defined in

core/src/schema/schema-weaver.ts:64

Properties

context

context: WeaverContext

Inherited from

SchemaWeaver.context

Defined in

core/src/schema/schema-weaver.ts:48


mutation?

optional mutation: LoomObjectType

Inherited from

SchemaWeaver.mutation

Defined in

core/src/schema/schema-weaver.ts:44


query?

optional query: LoomObjectType

Inherited from

SchemaWeaver.query

Defined in

core/src/schema/schema-weaver.ts:43


resolverOptions?

optional resolverOptions: ResolvingOptions

Inherited from

SchemaWeaver.resolverOptions

Defined in

core/src/schema/schema-weaver.ts:50


subscription?

optional subscription: LoomObjectType

Inherited from

SchemaWeaver.subscription

Defined in

core/src/schema/schema-weaver.ts:45


types

types: Set<GraphQLNamedType>

Inherited from

SchemaWeaver.types

Defined in

core/src/schema/schema-weaver.ts:46

Accessors

fieldOptions

get protected fieldOptions(): object

Returns

object

resolverOptions

resolverOptions: undefined | ResolvingOptions

weaverContext

weaverContext: WeaverContext = context

Inherited from

SchemaWeaver.fieldOptions

Defined in

core/src/schema/schema-weaver.ts:204

Methods

add()

add(resolver): FederatedSchemaWeaver

Parameters

resolver: SilkResolver

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.add

Defined in

core/src/schema/schema-weaver.ts:82


addResolver()

protected addResolver(resolver): FederatedSchemaWeaver

Parameters

resolver: SilkResolver

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.addResolver

Defined in

core/src/schema/schema-weaver.ts:135


addType()

addType(silk): FederatedSchemaWeaver

Parameters

silk: GraphQLSilk<any, any>

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.addType

Defined in

core/src/schema/schema-weaver.ts:92


addVendor()

addVendor(weaver): FederatedSchemaWeaver

Parameters

weaver: SchemaVendorWeaver

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.addVendor

Defined in

core/src/schema/schema-weaver.ts:87


getOperationObject()

protected getOperationObject(type): LoomObjectType

Parameters

type: "query" | "mutation" | "subscription"

Returns

LoomObjectType

Inherited from

SchemaWeaver.getOperationObject

Defined in

core/src/schema/schema-weaver.ts:176


setConfig()

setConfig<TConfig>(config): FederatedSchemaWeaver

Type Parameters

TConfig extends WeaverConfig

Parameters

config: TConfig

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.setConfig

Defined in

core/src/schema/schema-weaver.ts:115


use()

use(...middlewares): FederatedSchemaWeaver

Parameters

• ...middlewares: Middleware[]

Returns

FederatedSchemaWeaver

Inherited from

SchemaWeaver.use

Defined in

core/src/schema/schema-weaver.ts:75


weaveGraphQLSchema()

weaveGraphQLSchema(): GraphQLSchema

Returns

GraphQLSchema

Overrides

SchemaWeaver.weaveGraphQLSchema

Defined in

federation/src/schema-weaver.ts:32


config()

static config(config): CoreSchemaWeaverConfig

Create a Schema Weaver config object

Parameters

config: CoreSchemaWeaverConfigOptions

Schema Weaver config options

Returns

CoreSchemaWeaverConfig

a Schema Weaver config object

Inherited from

SchemaWeaver.config

Defined in

core/src/schema/schema-weaver.ts:57


hasResolvableKey()

static hasResolvableKey(type): boolean

Parameters

type: GraphQLNamedType

Returns

boolean

Defined in

federation/src/schema-weaver.ts:77


optionsFrom()

static optionsFrom(...inputs): object

Parameters

• ...inputs: (GraphQLSilk<any, any> | SilkResolver | WeaverConfig | SchemaVendorWeaver | Middleware)[]

Returns

object

configs

configs: Set<WeaverConfig>

context

context: undefined | WeaverContext

middlewares

middlewares: Set<Middleware>

resolvers

resolvers: Set<SilkResolver>

silks

silks: Set<GraphQLSilk<any, any>>

weavers

weavers: Set<SchemaVendorWeaver>

Inherited from

SchemaWeaver.optionsFrom

Defined in

core/src/schema/schema-weaver.ts:209


weave()

static weave(...inputs): GraphQLSchema

Weave a GraphQL Schema from resolvers

Parameters

• ...inputs: (GraphQLSilk<any, any> | SilkResolver | WeaverConfig | Middleware)[]

Resolvers, Global Middlewares or WeaverConfigs

Returns

GraphQLSchema

GraphQ LSchema

Overrides

SchemaWeaver.weave

Defined in

federation/src/schema-weaver.ts:104