attributes sequelize code example
Example 1: sequelize order by
order: [["createdAt", "DESC"]]
Example 2: sequelize .all()
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
Example 3: sequelize attributes
Model.findAll({
attributes: ['foo', 'bar']
});