How can I find the range of numbers in mongoose node.js

example: User.find( id > 0 && id < 10, function (err, docs) {})

User
  .find({})
  .where('id').gt(0).lt(10)
  .exec(callback);

from the docs