How to do X using Sequelize
I don’t know about you guys, but I always have an annoying time trying to figure out how to make Sequelize work — the documentation seems to have a dearth of examples. Here’s a few examples for “common” functionality.
Get plain objects instead of Sequelize Instances after bulkCreate
models.Item.bulkCreate(values)
.then(results => results.map(result => result.get({ plain: true }))) // Convert to plain
.then(items => console.log(items)) // Plain object array [{...}, {...}, ...]
Pretty easy, use .get({ plain: true }) on any Sequelize instance to convert it to a plain JavaScript object.
Sequelize bulkCreate but ignore any duplicates
models.Item.bulkCreate(values, {
ignoreDuplicates: true
})
Just use the ignoreDuplicates option and pass it as the second argument.
Deleting a row
Delete is called destroy, use it as so:
models.Items.destroy({
where: {
id: 42
}
})
Stop building dashboards one by one
Gigacatalyst puts AI-native dashboards, reports, and spreadsheet workflows inside your product, so your customers build what they need on your own APIs instead of filing feature requests.
My customers say that this is the best way to cut their backlog and keep accounts in 2026.