Function: asUnionType()

asUnionType(config)

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

Register as a GraphQL union type.

Parameters

config: UnionConfig

The GraphQL union config.

Returns

Function

zod superRefine refinement.

Parameters

arg: object

ctx: RefinementCtx

Returns

void

Defined in

packages/zod/src/metadata.ts:106

asUnionType(name)

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

Register as a GraphQL union type.

Parameters

name: string

The GraphQL union name.

Returns

Function

zod superRefine refinement.

Parameters

arg: object

ctx: RefinementCtx

Returns

void

Defined in

packages/zod/src/metadata.ts:117