07-21-2023, 04:38 PM
Post
.findAll({where: {tag: 'news'}, limit: 10})
.success(function(result) { ... })
How to insert the condition of sorting by date in my query with not using `sequelize.query` like
.findAll({ limit: 10, sort: [updatedAt, descending]})
.findAll({where: {tag: 'news'}, limit: 10})
.success(function(result) { ... })
How to insert the condition of sorting by date in my query with not using `sequelize.query` like
.findAll({ limit: 10, sort: [updatedAt, descending]})