new FederatedSchemaWeaver(
__namedParameters
,context
?):FederatedSchemaWeaver
• __namedParameters: SchemaWeaverParameters
= {}
• context?: WeaverContext
core/src/schema/schema-weaver.ts:64
context:
WeaverContext
core/src/schema/schema-weaver.ts:48
optional
mutation:LoomObjectType
core/src/schema/schema-weaver.ts:44
optional
query:LoomObjectType
core/src/schema/schema-weaver.ts:43
optional
resolverOptions:ResolvingOptions
core/src/schema/schema-weaver.ts:50
optional
subscription:LoomObjectType
core/src/schema/schema-weaver.ts:45
types:
Set
<GraphQLNamedType
>
core/src/schema/schema-weaver.ts:46
get
protected
fieldOptions():object
object
resolverOptions:
undefined
|ResolvingOptions
weaverContext:
WeaverContext
=context
core/src/schema/schema-weaver.ts:204
add(
resolver
):FederatedSchemaWeaver
• resolver: SilkResolver
core/src/schema/schema-weaver.ts:82
protected
addResolver(resolver
):FederatedSchemaWeaver
• resolver: SilkResolver
core/src/schema/schema-weaver.ts:135
addType(
silk
):FederatedSchemaWeaver
• silk: GraphQLSilk
<any
, any
>
core/src/schema/schema-weaver.ts:92
addVendor(
weaver
):FederatedSchemaWeaver
• weaver: SchemaVendorWeaver
core/src/schema/schema-weaver.ts:87
protected
getOperationObject(type
):LoomObjectType
• type: "query"
| "mutation"
| "subscription"
SchemaWeaver
.getOperationObject
core/src/schema/schema-weaver.ts:176
setConfig<
TConfig
>(config
):FederatedSchemaWeaver
• TConfig extends WeaverConfig
• config: TConfig
core/src/schema/schema-weaver.ts:115
use(...
middlewares
):FederatedSchemaWeaver
• ...middlewares: Middleware
[]
core/src/schema/schema-weaver.ts:75
weaveGraphQLSchema():
GraphQLSchema
GraphQLSchema
SchemaWeaver
.weaveGraphQLSchema
federation/src/schema-weaver.ts:32
static
config(config
):CoreSchemaWeaverConfig
Create a Schema Weaver config object
• config: CoreSchemaWeaverConfigOptions
Schema Weaver config options
a Schema Weaver config object
core/src/schema/schema-weaver.ts:57
static
hasResolvableKey(type
):boolean
• type: GraphQLNamedType
boolean
federation/src/schema-weaver.ts:77
static
optionsFrom(...inputs
):object
• ...inputs: (GraphQLSilk
<any
, any
> | SilkResolver
| WeaverConfig
| SchemaVendorWeaver
| Middleware
)[]
object
configs:
Set
<WeaverConfig
>
context:
undefined
|WeaverContext
middlewares:
Set
<Middleware
>
resolvers:
Set
<SilkResolver
>
silks:
Set
<GraphQLSilk
<any
,any
>>
weavers:
Set
<SchemaVendorWeaver
>
core/src/schema/schema-weaver.ts:209
static
weave(...inputs
):GraphQLSchema
Weave a GraphQL Schema from resolvers
• ...inputs: (GraphQLSilk
<any
, any
> | SilkResolver
| WeaverConfig
| Middleware
)[]
Resolvers, Global Middlewares or WeaverConfigs
GraphQLSchema
GraphQ LSchema
federation/src/schema-weaver.ts:104