asUnionType(
config
): (arg
,ctx
) =>void
Register as a GraphQL union type.
• config: UnionConfig
The GraphQL union config.
Function
zod superRefine refinement.
• arg: object
• ctx: RefinementCtx
void
packages/zod/src/metadata.ts:106
asUnionType(
name
): (arg
,ctx
) =>void
Register as a GraphQL union type.
• name: string
The GraphQL union name.
Function
zod superRefine refinement.
• arg: object
• ctx: RefinementCtx
void
packages/zod/src/metadata.ts:117