GraphQL field metadata type.
BaseMetadata
<TInput
>• TInput
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:FieldConfig
The GraphQL field config.
packages/valibot/src/metadata.ts:183
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
>(config
) =>AsFieldMetadata
<TInput
>
The metadata reference.
Creates a GraphQL field metadata.
• TInput
• config: FieldConfig
The GraphQL field config.
AsFieldMetadata
<TInput
>
A GraphQL field metadata.
BaseMetadata.reference
packages/valibot/src/metadata.ts:178
readonly
type:"gqloom.asField"
The metadata type.
BaseMetadata.type
packages/valibot/src/metadata.ts:174