GraphQLObjectType
new LoomObjectType(
objectOrGetter
,options
):LoomObjectType
• objectOrGetter: string
| GraphQLObjectTypeConfig
<any
, any
> | GraphQLObjectType
<any
, any
> | () => GraphQLObjectTypeConfig
<any
, any
> | GraphQLObjectType
<any
, any
>
• options = {}
• options.resolverOptions?: ResolvingOptions
• options.weaverContext?: WeaverContext
GraphQLObjectType.constructor
packages/core/src/schema/object.ts:48
astNode:
Maybe
<ObjectTypeDefinitionNode
>
GraphQLObjectType.astNode
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:440
description:
Maybe
<string
>
GraphQLObjectType.description
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:437
extensionASTNodes: readonly
ObjectTypeExtensionNode
[]
GraphQLObjectType.extensionASTNodes
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:441
extensions:
Readonly
<GraphQLObjectTypeExtensions
<any
,any
>>
GraphQLObjectType.extensions
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:439
protected
extraFields:Map
<string
,SilkFieldOrOperation
>
packages/core/src/schema/object.ts:42
protected
hiddenFields:Set
<string
>
packages/core/src/schema/object.ts:43
isTypeOf:
Maybe
<GraphQLIsTypeOfFn
<any
,any
>>
GraphQLObjectType.isTypeOf
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:438
name:
string
GraphQLObjectType.name
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:436
protected
optional
resolverOptions:ResolvingOptions
packages/core/src/schema/object.ts:46
protected
weaverContext:WeaverContext
packages/core/src/schema/object.ts:45
get
[toStringTag]():string
string
GraphQLObjectType.[toStringTag]
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:445
get
options():object
object
resolverOptions:
undefined
|ResolvingOptions
weaverContext:
WeaverContext
packages/core/src/schema/object.ts:196
addField(
name
,resolver
):void
• name: string
• resolver: SilkFieldOrOperation
void
packages/core/src/schema/object.ts:82
protected
getCacheType(gqlType
):GraphQLOutputType
• gqlType: GraphQLOutputType
GraphQLOutputType
packages/core/src/schema/object.ts:192
getFields():
GraphQLFieldMap
<any
,any
>
GraphQLFieldMap
<any
, any
>
GraphQLObjectType.getFields
packages/core/src/schema/object.ts:95
getInterfaces(): readonly
GraphQLInterfaceType
[]
readonly GraphQLInterfaceType
[]
GraphQLObjectType.getInterfaces
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:447
hideField(
name
):void
• name: string
void
packages/core/src/schema/object.ts:78
protected
mapToFieldConfig(map
):Record
<string
,GraphQLFieldConfig
<any
,any
,any
>>
• map: Map
<string
, SilkFieldOrOperation
>
Record
<string
, GraphQLFieldConfig
<any
, any
, any
>>
packages/core/src/schema/object.ts:124
mergeExtensions(
extensions
):void
• extensions: Maybe
<Readonly
<GraphQLObjectTypeExtensions
<any
, any
>>>
void
packages/core/src/schema/object.ts:90
protected
provideForResolve(field
):undefined
|Pick
<GraphQLFieldConfig
<any
,any
,any
>,"resolve"
>
• field: SilkFieldOrOperation
undefined
| Pick
<GraphQLFieldConfig
<any
, any
, any
>, "resolve"
>
packages/core/src/schema/object.ts:152
protected
provideForSubscribe(field
):undefined
|Pick
<GraphQLFieldConfig
<any
,any
,any
>,"subscribe"
>
• field: SilkFieldOrOperation
undefined
| Pick
<GraphQLFieldConfig
<any
, any
, any
>, "subscribe"
>
packages/core/src/schema/object.ts:180
toConfig():
GraphQLObjectTypeNormalizedConfig
<any
,any
>
GraphQLObjectTypeNormalizedConfig
<any
, any
>
GraphQLObjectType.toConfig
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:448
toFieldConfig(
field
):GraphQLFieldConfig
<any
,any
,any
>
• field: SilkFieldOrOperation
GraphQLFieldConfig
<any
, any
, any
>
packages/core/src/schema/object.ts:136
toJSON():
string
string
GraphQLObjectType.toJSON
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:450
toString():
string
string
GraphQLObjectType.toString
node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:449