v3.3.1
Playground

API Reference

Function signatures, helpers, and Zod-to-Mongoose conversion rules.

API Reference

Use the reference when you already know what you want to call or need the exact mapping. For a worked path from install to model, start with Start Here.

Look up…Page
toMongooseSchema, extractMongooseDef, withMongooseCore Functions
zObjectId, zRef, zBuffer, timestamp helpers, utility typesSpecialized Helpers
zPoint, zPolygon (coming in v3.2)GeoJSON helpers
Mappings for Zod types and checksConversion Mapping
Discriminators, XOR, BigInt, composite IDsAdvanced Types