Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pothos/packages/plugin-validation/index.ts>PothosValidationPlugin#createValidator

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

Parameters

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

Returns

zod.ZodTypeAny