query() takes a function similar to other Knex methods

query() takes a function similar to other Knex methods:

collection.query(function() {
    this.where("id","=","1")
}).fetch().then(console.log)