Class: GraphQLSchemaLoom

Constructors

new GraphQLSchemaLoom()

new GraphQLSchemaLoom(__namedParameters, context?): GraphQLSchemaLoom

Parameters

__namedParameters: SchemaWeaverParameters = {}

context?: WeaverContext

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:61

Properties

context

context: WeaverContext

Defined in

packages/core/src/schema/schema-loom.ts:45


mutation?

optional mutation: LoomObjectType

Defined in

packages/core/src/schema/schema-loom.ts:41


query?

optional query: LoomObjectType

Defined in

packages/core/src/schema/schema-loom.ts:40


resolverOptions?

optional resolverOptions: ResolvingOptions

Defined in

packages/core/src/schema/schema-loom.ts:47


subscription?

optional subscription: LoomObjectType

Defined in

packages/core/src/schema/schema-loom.ts:42


types

types: Set<GraphQLNamedType>

Defined in

packages/core/src/schema/schema-loom.ts:43

Accessors

fieldOptions

get protected fieldOptions(): object

Returns

object

resolverOptions

resolverOptions: undefined | ResolvingOptions

weaverContext

weaverContext: WeaverContext = context

Defined in

packages/core/src/schema/schema-loom.ts:201

Methods

add()

add(resolver): GraphQLSchemaLoom

Parameters

resolver: SilkResolver

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:79


addResolver()

protected addResolver(resolver): GraphQLSchemaLoom

Parameters

resolver: SilkResolver

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:132


addType()

addType(silk): GraphQLSchemaLoom

Parameters

silk: GraphQLSilk<any, any>

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:89


addVendor()

addVendor(weaver): GraphQLSchemaLoom

Parameters

weaver: SchemaWeaver

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:84


getOperationObject()

protected getOperationObject(type): LoomObjectType

Parameters

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

Returns

LoomObjectType

Defined in

packages/core/src/schema/schema-loom.ts:173


setConfig()

setConfig<TConfig>(config): GraphQLSchemaLoom

Type Parameters

TConfig extends WeaverConfig

Parameters

config: TConfig

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:112


use()

use(...middlewares): GraphQLSchemaLoom

Parameters

• ...middlewares: Middleware[]

Returns

GraphQLSchemaLoom

Defined in

packages/core/src/schema/schema-loom.ts:72


weaveGraphQLSchema()

weaveGraphQLSchema(): GraphQLSchema

Returns

GraphQLSchema

Defined in

packages/core/src/schema/schema-loom.ts:117


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

Defined in

packages/core/src/schema/schema-loom.ts:54


optionsFrom()

static optionsFrom(...inputs): object

Parameters

• ...inputs: (GraphQLSilk<any, any> | SilkResolver | WeaverConfig | SchemaWeaver | 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<SchemaWeaver>

Defined in

packages/core/src/schema/schema-loom.ts:206


weave()

static weave(...inputs): GraphQLSchema

Weave a GraphQL Schema from resolvers

Parameters

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

Resolvers, Global Middlewares, WeaverConfigs Or SchemaWeaver

Returns

GraphQLSchema

GraphQL Schema

Defined in

packages/core/src/schema/schema-loom.ts:252