Closed samuelstroschein closed 2 months ago
https://github.com/kysely-org/kysely/issues/27#issuecomment-986076120
Define database schema types as null | T instead of undefined | T to avoid bugs.
null | T
undefined | T
Was not needed because the inlang schema has no nullable/optional props except for an Expression which is not reflected in the database.
Expression
Context
https://github.com/kysely-org/kysely/issues/27#issuecomment-986076120
Proposal
Define database schema types as
null | T
instead ofundefined | T
to avoid bugs.