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

x/netzo/core/utils/database.utils.ts>createZodForCollection

Deno-powered framework for building business web apps
Go to Latest
variable createZodForCollection
import { createZodForCollection } from "https://deno.land/x/netzo@0.3.91/core/utils/database.utils.ts";

Creates a Zod schema from a Netzo collection.

Examples

const accountSchema = createZodForCollection(["accounts"]); export type Account = z.infer;

type

(collectionPrefix: string[]) => unknown