How to insert a null value in Sequelize with omitNull flag?
When using omitNull = true
option there is a way to force sequelize to set a property null.
Just do something like this:
SomeModel.some_property = null;
SomeModel.save(['some_property']);
This will force sequelize to create the update/insert SQL with NULL for some_property
.
I hope it helps.