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:52

Properties

_aliases

protected _aliases: string[] = []

Defined in

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


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:44


hasExplicitName?

protected optional hasExplicitName: boolean

Defined in

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


hiddenFields

protected hiddenFields: Set<string>

Defined in

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


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:50


weaverContext

protected weaverContext: WeaverContext

Defined in

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


AUTO_ALIASING

static AUTO_ALIASING: "__gqloom_auto_aliasing"

Defined in

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

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


aliases

get aliases(): string[]

Returns

string[]

Defined in

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


options

get options(): object

Returns

object

resolverOptions

resolverOptions: undefined | ResolvingOptions

weaverContext

weaverContext: WeaverContext

Defined in

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

Methods

addAlias()

addAlias(name): void

Parameters

name: string

Returns

void

Defined in

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


addField()

addField(name, resolver): void

Parameters

name: string

resolver: SilkFieldOrOperation

Returns

void

Defined in

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


getCacheType()

protected getCacheType(gqlType, fieldName?): GraphQLOutputType

Parameters

gqlType: GraphQLOutputType

fieldName?: string

Returns

GraphQLOutputType

Defined in

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


getFields()

getFields(): GraphQLFieldMap<any, any>

Returns

GraphQLFieldMap<any, any>

Overrides

GraphQLObjectType.getFields

Defined in

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


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:107


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:154


mergeExtensions()

mergeExtensions(extensions): void

Parameters

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

Returns

void

Defined in

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


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:190


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:218


renameByAliases()

protected renameByAliases(): void

Returns

void

Defined in

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


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, fieldName?): GraphQLFieldConfig<any, any, any>

Parameters

field: SilkFieldOrOperation

fieldName?: string

Returns

GraphQLFieldConfig<any, any, any>

Defined in

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


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