Are default values not transferred over via drizzle-zod?

It seems like when I use a default([]) in my schema file that when I create a Zod object, I have to re-do the defaults?
Defaults are for SQL only. They have no effect at runtime. They are only used by drizzle-kit to generate the migrations.
ah okay thanks

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts