Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 mongodb 中收集了如下文件:
{ "_id" : ObjectId("51bf000a3d489f2df59aa4c6"), "arch" : "freebsd", "enqueued_time" : [ [ NumberLong(1356985578), NumberLong(0) ] ] }
我的目标是获取符合条件的文档:enqueued_time[1]< some_value。我怎样才能做到这一点?
db.tasks.find({"enqueued_time.0": {$lt: your_value_here}})
$lt 运算符