Function: asObjectType()

asObjectType(config)

asObjectType(config): (arg, ctx) => void

Register as a GraphQL object type.

Parameters

config: ObjectConfig

The GraphQL object config.

Returns

Function

zod superRefine refinement.

Parameters

arg: object

ctx: RefinementCtx

Returns

void

Defined in

packages/zod/src/metadata.ts:19

asObjectType(name)

asObjectType(name): (arg, ctx) => void

Register as a GraphQL object type.

Parameters

name: string

The GraphQL object name.

Returns

Function

zod superRefine refinement.

Parameters

arg: object

ctx: RefinementCtx

Returns

void

Defined in

packages/zod/src/metadata.ts:30