Replies: 2 comments
-
Based on what I have read from colinhacks about his vision for zod, I highly doubt zod will natively support mongoose or any other ORM/ODM. But he is more than happy to add tools built on top of zod to the Ecosystem section of the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
-
After so much research, I've figured out a workaround. Turn zod to json schema and json schema to mongoose schema The code:
I still hope for a proper solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The only thing keeping me from moving to Zod is one project called joigoose that translates my joi models into mongoose models.
So it would be nice if one for Zod would exist. And maybe it doesn't take much time for it to be developed :))
Beta Was this translation helpful? Give feedback.
All reactions