sequelize exclude attribute code example
Example 1: sequelize exclude attribute
User
.findAll({
attributes: {exclude: ['password']},
order: [['id','DESC']]})
.then( users => {
return reply( ReplyUtil.ok(users) );
})
.catch( err => {
return reply( ReplyUtil.badImplementation(err) );
});
Example 2: sequelize attributes exclude all
attributes: []