I have multiple data insert operations in my application
and when i use bulkCreate then it works for me
but I have an issue that when some required field like name which is not null in the database and i call create or save method for an individual method without name then it gives the error: required validation error
but when i do the same in bulkCreate then it creates with null value without throwing an error
following is the code of bulkCreate which is not working
models.testModel.bulkCreate(postObj.evUserFavouriteLocations,{updateOnDuplicate: true}).then(function (result) {
console.log("postObj.");
}).catch(Sequelize.ValidationError, function (err) {
console.log(' in sequierererror', err);
}).catch(function (err) {
console.log("err::",err);
});