Are default values not transferred over via drizzle-zod?

CCory5/7/2023
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?
Bbloberenober5/7/2023
Defaults are for SQL only. They have no effect at runtime. They are only used by drizzle-kit to generate the migrations.
CCory5/7/2023
ah okay thanks

Looking for more? Join the community!

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