Note: Part of the article was removed. It was challenging reader to implement this query (and earlier a query with WITH block) using Knex.js without using Knex.js raw methods in return for USD 30 reward. While it is possible to write the latter query using Knex.js, it is admittedly not the best use case for Knex.js.
1
u/gajus0 Feb 12 '19
Note: Part of the article was removed. It was challenging reader to implement this query (and earlier a query with WITH block) using Knex.js without using Knex.js raw methods in return for USD 30 reward. While it is possible to write the latter query using Knex.js, it is admittedly not the best use case for Knex.js.