Thin MongoDB ODM built for Standard Schema
mongodb zod deno
1import type { z } from "zod"; 2import type { ObjectId } from "mongodb"; 3 4export type InferModel<T extends z.ZodObject> = z.infer<T> & { 5 _id?: ObjectId; 6}; 7 8export type InsertType<T extends z.ZodObject> = 9 & Omit<z.infer<T>, "createdAt"> 10 & { createdAt?: Date };