Module

x/pothos/packages/plugin-validation/index.ts>createZodSchema

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
function createZodSchema
import { createZodSchema } from "https://dotland.deno.dev/x/pothos@release-1708848346/packages/plugin-validation/index.ts";

Parameters

optionsOrConstraint:
| null
| undefined
optional
required = [UNSUPPORTED]

Returns

zod.ZodTypeAny
import createZodSchema
import { createZodSchema } from "https://dotland.deno.dev/x/pothos@release-1708848346/packages/plugin-validation/index.ts";