I have a query below. I want get items between 4 and 6 so only a:1 should match because it has the value 5 in b.
> db.test.find({ b : { $gt : 4 }, b: {
.find( {$and:[ {b:{$gt:4}}, {b:{$lt:6}} ]} )