Writing multiline sql queries in javascript using knex

I have been using knex lately to inter­face with a post­gres data­base. Knex pro­vides you with a num­ber of ways to write queries in a shor­hand form. For examm­ple, if you want to select…