knex.select('*').from('users').havingIn('id', [5, 3, 10, 17]) Outputs: select * from `users` having `id` in (5, 3, 10, 17)