I cannot see any documentation on how to specify the javascript type of NULL columns in sequelize-typescript.
For example (the default @Column is allowNULL=true):
@Column
my_property?: string | null
my_other_property: string | null
both results in the following error Specified type of property 'my_property' cannot be automatically resolved to a sequelize data type.
Am I doing something wrong, or is the correct way merely:
@Column
my_property?: string
In which case, what does the ORM return when the database value is NULL? Does my_property become null or undefined?
Any tips are appreciated.