how to exclude the password when from the User Model class in sequelize code example
Example: don't get password sequelize
var User = sequelize.define('user', attributes);
User.findAll({
attributes: {
exclude: ['password']
}
});
var User = sequelize.define('user', attributes);
User.findAll({
attributes: {
exclude: ['password']
}
});