defaultFn not nullable
I have this schema:
when I set
.$defaultFn(() => createId())
for the Id property it marks it as Optional:
Is that a way to change that behavior and make it not nullable?1 Reply
It is nullable for the schema because you have
$defaultFn
. So, id
is not mandatory since a default value will be set.