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?
2 Replies
Dan
Dan2y ago
Defaults are for SQL only. They have no effect at runtime. They are only used by drizzle-kit to generate the migrations.
Cory
Cory2y ago
ah okay thanks
Want results from more Discord servers?
Add your server