knex-hooks
knex-hooks copied to clipboard
'select' hooks not applied to results obtained with first()
It does not appear that hooks which are applied to the 'select' operation are being applied to results obtained using the first() knex query, even though first() is essesntially a special case of select(). Is this by design, and is there a way to work around this so that any form of selection has the 'select' hooks applied?
Hmm, I will look into it. In theory knex-hooks "binds" to knex query builder so it should work with first().