You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason generated properties for Insertables are optional? I know that there are cases where you'd want that - generated values, values set by triggers. However, I think it should be null for "usual" nullable column. I don't know about backwards compatibility though.
Given a schema that has a nullable column:
The generated insertable is:
Does the
stage_name
property have to be optional? This causes the following code to pass:even when using
exactOptionalPropertyTypes
.I might forget to include an optional property and the compiler won't complain. That would not be the case if I the property was:
Then, an explicit null would be required:
Is there a reason generated properties for Insertables are optional? I know that there are cases where you'd want that - generated values, values set by triggers. However, I think it should be null for "usual" nullable column. I don't know about backwards compatibility though.
Kinda related to #25
The text was updated successfully, but these errors were encountered: