Documentation
API Reference
Classes
SupergraphSchemaManager

graphql-tools-monorepo / federation/src / SupergraphSchemaManager

Class: SupergraphSchemaManager

federation/src.SupergraphSchemaManager

Hierarchy

  • EventEmitter<{ error: [FetchError | unknown] ; failure: [FetchError | unknown, number] ; log: [{ level: "error" | "warn" | "info" ; message: string ; source: "uplink" | "manager" }] ; schema: [GraphQLSchema] }>

    SupergraphSchemaManager

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SupergraphSchemaManager(options): SupergraphSchemaManager

Parameters

NameType
optionsSupergraphSchemaManagerOptions

Returns

SupergraphSchemaManager

Overrides

EventEmitter.constructor

Defined in

packages/federation/src/managed-federation.ts:319

Properties

schema

Optional schema: GraphQLSchema = undefined

Defined in

packages/federation/src/managed-federation.ts:312

Methods

emit

emit<K>(eventName, ...args): boolean

Type parameters

NameType
Kextends "error" | "schema" | "failure" | "log"

Parameters

NameType
eventNameK
...args{ error: [unknown] ; failure: [unknown, number] ; log: [{ level: "error" | "warn" | "info" ; message: string ; source: "uplink" | "manager" }] ; schema: [GraphQLSchema] }[K]

Returns

boolean

Inherited from

EventEmitter.emit

Defined in

packages/federation/src/utils.ts:198


forcePull

forcePull(): void

Returns

void

Defined in

packages/federation/src/managed-federation.ts:338


off

off<K>(eventName, listener): this

Type parameters

NameType
Kextends "error" | "schema" | "failure" | "log"

Parameters

NameType
eventNameK
listener(…args: { error: [unknown] ; failure: [unknown, number] ; log: [{ level: "error" | "warn" | "info" ; message: string ; source: "uplink" | "manager" }] ; schema: [GraphQLSchema] }[K]) => void

Returns

this

Inherited from

EventEmitter.off

Defined in

packages/federation/src/utils.ts:189


on

on<K>(eventName, listener): this

Type parameters

NameType
Kextends "error" | "schema" | "failure" | "log"

Parameters

NameType
eventNameK
listener(…args: { error: [unknown] ; failure: [unknown, number] ; log: [{ level: "error" | "warn" | "info" ; message: string ; source: "uplink" | "manager" }] ; schema: [GraphQLSchema] }[K]) => void

Returns

this

Inherited from

EventEmitter.on

Defined in

packages/federation/src/utils.ts:170


once

once<K>(eventName, listener): this

Type parameters

NameType
Kextends "error" | "schema" | "failure" | "log"

Parameters

NameType
eventNameK
listener(…args: { error: [unknown] ; failure: [unknown, number] ; log: [{ level: "error" | "warn" | "info" ; message: string ; source: "uplink" | "manager" }] ; schema: [GraphQLSchema] }[K]) => void

Returns

this

Inherited from

EventEmitter.once

Defined in

packages/federation/src/utils.ts:180


start

start(delayInSeconds?): void

Parameters

NameTypeDefault value
delayInSecondsnumber0

Returns

void

Defined in

packages/federation/src/managed-federation.ts:326


stop

stop(): void

Returns

void

Defined in

packages/federation/src/managed-federation.ts:347