Postgresql – How to pass parameter for sorting in sequelize.query
I have used sequelize and had to write a custom SELECT query. I also have to perform sorting based on the parameter passed by user. So I decided to use replacements. The query looks something like this: sequelize.query( "SELECT SUM(amount),…