r/javascript • • Feb 12 '19

Using SQL query builder is an anti-pattern

https://medium.com/@gajus/stop-using-knex-js-and-earn-30-bf410349856c
0 Upvotes

1 comment sorted by

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.