ObjectID and UUID You can usezId(ref?: string)andzUUID(ref?: string)to describe fields as ObjectID and UUID and add reference to another collection: import{extendZod}from"@zodyac/zod-mongoose";import{z}from"zod";extendZod(z);constzUser=z.object({// Just the IDsomeId:zId(),wearable...
g.mongoose(Object object) Generates aMongoose Schemafromobject. g.bigquery(Object object) Generates aGoogle BigQueryschema fromobject. g.clickhouse([String tableName,] Mixed object, String dateField) GeneratesClickHouse Table Schemafromobject. tableNameis optional, defaults togeneric ...