标签: mongodb find
我在mongodb中收集了以下文档:
{ "_id" : ObjectId("51bf000a3d489f2df59aa4c6"), "arch" : "freebsd", "enqueued_time" : [ [ NumberLong(1356985578), NumberLong(0) ] ] }
我的目标是获取条件为:enqueued_time [1]< SOME_VALUE。我怎么能这样做?
答案 0 :(得分:0)
db.tasks.find({"enqueued_time.0": {$lt: your_value_here}})
$lt operator