Interface: AsObjectTypeMetadata<TInput>

GraphQL Object type metadata type.

Extends

  • BaseMetadata<TInput>

Type Parameters

TInput extends object

Properties

~types?

readonly optional ~types: object

Internal

The input, output and issue type.

input

readonly input: TInput

issue

readonly issue: never

output

readonly output: TInput

Inherited from

BaseMetadata.~types

Defined in

node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2962


config

readonly config: Partial<Omit<GraphQLObjectTypeConfig<any, any>, "interfaces" | "fields">> & object

The GraphQL Object type config.

Type declaration

interfaces?

optional interfaces: (GraphQLInterfaceType | GenericSchema<unknown, unknown, BaseIssue<unknown>> | GenericSchemaAsync<unknown, unknown, BaseIssue<unknown>>)[]

Defined in

packages/valibot/src/metadata.ts:219


kind

readonly kind: "metadata"

The object kind.

Inherited from

BaseMetadata.kind

Defined in

node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2948


reference()

readonly reference: <TInput>(name) => AsObjectTypeMetadata<TInput><TInput>(config) => AsObjectTypeMetadata<TInput>

The metadata reference.

Creates a GraphQL object type metadata.

Type Parameters

TInput extends object

Parameters

name: string

The GraphQL object name.

Returns

AsObjectTypeMetadata<TInput>

A GraphQL object type metadata.

Creates a GraphQL object type metadata.

Type Parameters

TInput extends object

Parameters

config: Partial<Omit<GraphQLObjectTypeConfig<any, any>, "interfaces" | "fields">> & object

The GraphQL object config.

Returns

AsObjectTypeMetadata<TInput>

A GraphQL object type metadata.

Overrides

BaseMetadata.reference

Defined in

packages/valibot/src/metadata.ts:214


type

readonly type: "gqloom.asObjectType"

The metadata type.

Overrides

BaseMetadata.type

Defined in

packages/valibot/src/metadata.ts:210