📜  sequelize 4 sort on join table 属性 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:42.379000             🧑  作者: Mango

代码示例1
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;