Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
santanubasu opened this issue Apr 2, 2019 · 1 comment
Open

Comments

@santanubasu
Copy link

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?

@alekbarszczewski
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants