Answers for "sequelize 4 sort on joined table attribute"

0

sequelize 4 sort on joined table attribute

Customer.findAll({
    order: '"Orders"."orderDate" DESC',
    include: [Order]
}, {
    raw: true
}).then(function(data) {
    console.log(data);
});
// Generated order by clause
// ORDER BY "Orders"."orderDate" DESC;
Posted by: Guest on March-17-2020

Code answers related to "sequelize 4 sort on joined table attribute"

Browse Popular Code Answers by Language