Module

x/pothos/packages/plugin-validation/mod.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-1691259632/packages/plugin-validation/mod.ts";

Parameters

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

Returns

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