adonisjs in

JavaScript
await Database
  .from('users')
  .whereNotIn('id', [1,2,3])
Source

Also in JavaScript: