I need to check if entry with specific ID exists in the database using Sequelize in Node.js
function isIdUnique (id) { db.Profile.count({ where: { id:
You can count and find.
Project .findAndCountAll({ where: { title: { [Op.like]: 'foo%' } }, offset: 10, limit: 2 }) .then(result => { console.log(result.count); console.log(result.rows); });
Doc link, v5 Beta Release