asObjectType<
TInput
>(name
):AsObjectTypeMetadata
<TInput
>
Creates a GraphQL object type metadata.
• TInput extends object
• name: string
The GraphQL object name.
AsObjectTypeMetadata
<TInput
>
A GraphQL object type metadata.
packages/valibot/src/metadata.ts:233
asObjectType<
TInput
>(config
):AsObjectTypeMetadata
<TInput
>
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.
packages/valibot/src/metadata.ts:243