knex-hooks icon indicating copy to clipboard operation
knex-hooks copied to clipboard

'select' hooks not applied to results obtained with first()

Open santanubasu opened this issue 5 years ago • 1 comments

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?

santanubasu avatar Apr 02 '19 18:04 santanubasu

Hmm, I will look into it. In theory knex-hooks "binds" to knex query builder so it should work with first().

alekbarszczewski avatar Apr 03 '19 09:04 alekbarszczewski