Database

[{"x":1},{"x":2},{"x":3},{"x":4},{"x":5}]

Query

db.collection.find({x:{$gte:2,$lt:4}},{_id:0})

Result