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
,string
] }>↳
SupergraphSchemaManager
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new SupergraphSchemaManager(options
): SupergraphSchemaManager
Parameters
Name | Type |
---|---|
options | SupergraphSchemaManagerOptions |
Returns
Overrides
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
Name | Type |
---|---|
K | extends "error" | "schema" | "failure" | "log" |
Parameters
Name | Type |
---|---|
eventName | K |
...args | { error : [unknown ] ; failure : [unknown , number ] ; log : [{ level : "error" | "warn" | "info" ; message : string ; source : "uplink" | "manager" }] ; schema : [GraphQLSchema , string ] }[K ] |
Returns
boolean
Inherited from
Defined in
packages/federation/src/utils.ts:214
forcePull
▸ forcePull(): void
Returns
void
Defined in
packages/federation/src/managed-federation.ts:338
off
▸ off<K
>(eventName
, listener
): this
Type parameters
Name | Type |
---|---|
K | extends "error" | "schema" | "failure" | "log" |
Parameters
Name | Type |
---|---|
eventName | K |
listener | (…args : { error : [unknown ] ; failure : [unknown , number ] ; log : [{ level : "error" | "warn" | "info" ; message : string ; source : "uplink" | "manager" }] ; schema : [GraphQLSchema , string ] }[K ]) => void |
Returns
this
Inherited from
Defined in
packages/federation/src/utils.ts:205
on
▸ on<K
>(eventName
, listener
): this
Type parameters
Name | Type |
---|---|
K | extends "error" | "schema" | "failure" | "log" |
Parameters
Name | Type |
---|---|
eventName | K |
listener | (…args : { error : [unknown ] ; failure : [unknown , number ] ; log : [{ level : "error" | "warn" | "info" ; message : string ; source : "uplink" | "manager" }] ; schema : [GraphQLSchema , string ] }[K ]) => void |
Returns
this
Inherited from
Defined in
packages/federation/src/utils.ts:186
once
▸ once<K
>(eventName
, listener
): this
Type parameters
Name | Type |
---|---|
K | extends "error" | "schema" | "failure" | "log" |
Parameters
Name | Type |
---|---|
eventName | K |
listener | (…args : { error : [unknown ] ; failure : [unknown , number ] ; log : [{ level : "error" | "warn" | "info" ; message : string ; source : "uplink" | "manager" }] ; schema : [GraphQLSchema , string ] }[K ]) => void |
Returns
this
Inherited from
Defined in
packages/federation/src/utils.ts:196
start
▸ start(delayInSeconds?
): void
Parameters
Name | Type | Default value |
---|---|---|
delayInSeconds | number | 0 |
Returns
void
Defined in
packages/federation/src/managed-federation.ts:326
stop
▸ stop(): void
Returns
void