I have a Sequelize instance with the omitNull flag to insert the default values defined in the database, if I do not define them in the model creation method. Like this:
var sequelize = new Sequelize('db', 'user', 'pw', { omitNull: true })
But I want to insert null values in other models if I define them as null. How:
SomeModel.create({some_property: null});
Is there a way to define the omitNull property only for some model properties?
source share