Knex js Making a helper function to get a table’s query builder
I’m trying to make my knex code simpler by removing knex.from('table')
or knex('table')
from my queries to something like table.where(...).select()
and by doing this I make sure I’m not pointing to a wrong table or a typo.