Interface: AsFieldMetadata<TInput>

GraphQL field metadata type.

Extends

  • BaseMetadata<TInput>

Type Parameters

TInput

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

The GraphQL field config.

Defined in

packages/valibot/src/metadata.ts:183


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>(config) => AsFieldMetadata<TInput>

The metadata reference.

Creates a GraphQL field metadata.

Type Parameters

TInput

Parameters

config: FieldConfig

The GraphQL field config.

Returns

AsFieldMetadata<TInput>

A GraphQL field metadata.

Overrides

BaseMetadata.reference

Defined in

packages/valibot/src/metadata.ts:178


type

readonly type: "gqloom.asField"

The metadata type.

Overrides

BaseMetadata.type

Defined in

packages/valibot/src/metadata.ts:174