Is it possible to remove double quotes from generated query in Sequelize from ranking column?
attributes: ['user_id', ['amt_agg', 'amount'], ['dist_agg', 'distance'],
[sequelize.col('row_number() OVER (ORDER BY (dist_agg) DESC)'),'ranking' ]]
Generated output of above code:-
SELECT "user_id","amt_agg" AS "amount","dist_agg" AS "distance", "row_number() OVER (ORDER BY (dist_agg) DESC)" AS "ranking" FROM "leaderboard" AS "leaderboard";
What I have tried:
Everything is working fine if I remove double quotes(") from ranking column in generated output.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)