GraphQL Object type metadata type.
BaseMetadata
<TInput
>• TInput extends object
readonly
optional
~types:object
Internal
The input, output and issue type.
readonly
input:TInput
readonly
issue:never
readonly
output:TInput
BaseMetadata.~types
node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2962
readonly
config:Partial
<Omit
<GraphQLObjectTypeConfig
<any
,any
>,"interfaces"
|"fields"
>> &object
The GraphQL Object type config.
optional
interfaces: (GraphQLInterfaceType
|GenericSchema
<unknown
,unknown
,BaseIssue
<unknown
>> |GenericSchemaAsync
<unknown
,unknown
,BaseIssue
<unknown
>>)[]
packages/valibot/src/metadata.ts:219
readonly
kind:"metadata"
The object kind.
BaseMetadata.kind
node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2948
readonly
reference: <TInput
>(name
) =>AsObjectTypeMetadata
<TInput
><TInput
>(config
) =>AsObjectTypeMetadata
<TInput
>
The metadata reference.
Creates a GraphQL object type metadata.
• TInput extends object
• name: string
The GraphQL object name.
AsObjectTypeMetadata
<TInput
>
A GraphQL object type metadata.
Creates a GraphQL object type metadata.
• TInput extends object
• config: Partial
<Omit
<GraphQLObjectTypeConfig
<any
, any
>, "interfaces"
| "fields"
>> & object
The GraphQL object config.
AsObjectTypeMetadata
<TInput
>
A GraphQL object type metadata.
BaseMetadata.reference
packages/valibot/src/metadata.ts:214
readonly
type:"gqloom.asObjectType"
The metadata type.
BaseMetadata.type
packages/valibot/src/metadata.ts:210