Class: LoomObjectType

Extends

  • GraphQLObjectType

Constructors

new LoomObjectType()

new LoomObjectType(objectOrGetter, options): LoomObjectType

Parameters

objectOrGetter: string | GraphQLObjectTypeConfig<any, any> | GraphQLObjectType<any, any> | () => GraphQLObjectTypeConfig<any, any> | GraphQLObjectType<any, any>

options = {}

options.resolverOptions?: ResolvingOptions

options.weaverContext?: WeaverContext

Returns

LoomObjectType

Overrides

GraphQLObjectType.constructor

Defined in

packages/core/src/schema/object.ts:48

Properties

astNode

astNode: Maybe<ObjectTypeDefinitionNode>

Inherited from

GraphQLObjectType.astNode

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:440


description

description: Maybe<string>

Inherited from

GraphQLObjectType.description

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:437


extensionASTNodes

extensionASTNodes: readonly ObjectTypeExtensionNode[]

Inherited from

GraphQLObjectType.extensionASTNodes

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:441


extensions

extensions: Readonly<GraphQLObjectTypeExtensions<any, any>>

Inherited from

GraphQLObjectType.extensions

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:439


extraFields

protected extraFields: Map<string, SilkFieldOrOperation>

Defined in

packages/core/src/schema/object.ts:42


hiddenFields

protected hiddenFields: Set<string>

Defined in

packages/core/src/schema/object.ts:43


isTypeOf

isTypeOf: Maybe<GraphQLIsTypeOfFn<any, any>>

Inherited from

GraphQLObjectType.isTypeOf

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:438


name

name: string

Inherited from

GraphQLObjectType.name

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:436


resolverOptions?

protected optional resolverOptions: ResolvingOptions

Defined in

packages/core/src/schema/object.ts:46


weaverContext

protected weaverContext: WeaverContext

Defined in

packages/core/src/schema/object.ts:45

Accessors

[toStringTag]

get [toStringTag](): string

Returns

string

Inherited from

GraphQLObjectType.[toStringTag]

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:445


options

get options(): object

Returns

object

resolverOptions

resolverOptions: undefined | ResolvingOptions

weaverContext

weaverContext: WeaverContext

Defined in

packages/core/src/schema/object.ts:196

Methods

addField()

addField(name, resolver): void

Parameters

name: string

resolver: SilkFieldOrOperation

Returns

void

Defined in

packages/core/src/schema/object.ts:82


getCacheType()

protected getCacheType(gqlType): GraphQLOutputType

Parameters

gqlType: GraphQLOutputType

Returns

GraphQLOutputType

Defined in

packages/core/src/schema/object.ts:192


getFields()

getFields(): GraphQLFieldMap<any, any>

Returns

GraphQLFieldMap<any, any>

Overrides

GraphQLObjectType.getFields

Defined in

packages/core/src/schema/object.ts:95


getInterfaces()

getInterfaces(): readonly GraphQLInterfaceType[]

Returns

readonly GraphQLInterfaceType[]

Inherited from

GraphQLObjectType.getInterfaces

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:447


hideField()

hideField(name): void

Parameters

name: string

Returns

void

Defined in

packages/core/src/schema/object.ts:78


mapToFieldConfig()

protected mapToFieldConfig(map): Record<string, GraphQLFieldConfig<any, any, any>>

Parameters

map: Map<string, SilkFieldOrOperation>

Returns

Record<string, GraphQLFieldConfig<any, any, any>>

Defined in

packages/core/src/schema/object.ts:124


mergeExtensions()

mergeExtensions(extensions): void

Parameters

extensions: Maybe<Readonly<GraphQLObjectTypeExtensions<any, any>>>

Returns

void

Defined in

packages/core/src/schema/object.ts:90


provideForResolve()

protected provideForResolve(field): undefined | Pick<GraphQLFieldConfig<any, any, any>, "resolve">

Parameters

field: SilkFieldOrOperation

Returns

undefined | Pick<GraphQLFieldConfig<any, any, any>, "resolve">

Defined in

packages/core/src/schema/object.ts:152


provideForSubscribe()

protected provideForSubscribe(field): undefined | Pick<GraphQLFieldConfig<any, any, any>, "subscribe">

Parameters

field: SilkFieldOrOperation

Returns

undefined | Pick<GraphQLFieldConfig<any, any, any>, "subscribe">

Defined in

packages/core/src/schema/object.ts:180


toConfig()

toConfig(): GraphQLObjectTypeNormalizedConfig<any, any>

Returns

GraphQLObjectTypeNormalizedConfig<any, any>

Inherited from

GraphQLObjectType.toConfig

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:448


toFieldConfig()

toFieldConfig(field): GraphQLFieldConfig<any, any, any>

Parameters

field: SilkFieldOrOperation

Returns

GraphQLFieldConfig<any, any, any>

Defined in

packages/core/src/schema/object.ts:136


toJSON()

toJSON(): string

Returns

string

Inherited from

GraphQLObjectType.toJSON

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:450


toString()

toString(): string

Returns

string

Inherited from

GraphQLObjectType.toString

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:449