MongoDB between ... and ... 操作

MongoDB中类似SQL的between and操作可以采用如下语法:

1
db.collection.find( { field: { $gt: value1, $lt: value2 } } );