I am writing rest using node, sequelize as ORM for mySQL. I am using bulkCreate function to create record in bulk. But in response it is returning null for
var data = [{ 'cat_name':'fashion' }, { 'cat_name':'food' } ]; orm.models.category.bulkCreate(data,{individualHooks: true}) .then(function(response){ res.json(response); }) .catch(function(error){ res.json(error); });