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