Function: asField()

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

Register as a GraphQL field.

Parameters

config: FieldConfig

The GraphQL field config.

Returns

Function

zod superRefine refinement.

Parameters

arg: any

ctx: RefinementCtx

Returns

void

Defined in

packages/zod/src/metadata.ts:64