Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/plugin-zod/index.ts>ValidationErrorFn

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias ValidationErrorFn
import { type ValidationErrorFn } from "https://deno.land/x/pothos@release-1725301526/packages/plugin-zod/index.ts";

Type Parameters

Types extends SchemaTypes
definition: (
error: ZodError,
args: Record<string, unknown>,
context: Types["Context"],
info: GraphQLResolveInfo,
) => Error | string