Skip to content

Fix types corresponding to nullable column types #887

@mjuchli-da

Description

@mjuchli-da

Currently we have a few occurrences where we use type T | undefined instead of T | null.

In the context of Kysely:
undefined means “property absent from the object, not database NULL.
Kysely converts undefined to “skip this column in INSERT/UPDATE,” not to “write NULL”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions