Skip to main content
Module

x/pothos/packages/plugin-zod/index.ts>PothosZodPlugin#createValidator

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

Parameters

optionsOrConstraint: RefineConstraint | ValidationOptionUnion | undefined
type: PothosInputFieldType<Types> | null
fieldName: string

Returns

zod.ZodTypeAny