通过输入一些键值并获取值来进行mongodb搜索操作

时间:2015-02-12 09:28:00

标签: javascript mongodb

我在数据库中有以下数据

db.report.insert({ "_id" : ObjectId("54d70"), "server" : { "timestamp" : "Thu Feb 12 07:14:19 2015", "person" : "lali", "candidate" : [  {  "isno" : "63",  "id" : "4c:64:33:e9" } ], "id" :"24" } })
db.report.insert({ "_id" : ObjectId("5471"), "server" : { "timestamp" : "Thu Feb 12 07:14:39 2015", "person" : "lali", "candidate" : [  {  "isno" : "4",  "id" : "4c:64:33:e9" } ], "id" : "24" } })
db.report.insert({ "_id" : ObjectId("5472"), "server" : { "timestamp" : "Thu Feb 12 07:14:09 2015", "person" : "lali", "candidate" : [  {  "isno" : "6",  "id" : "4c:64:33:e9" } ], "id" : "24" } })

通过输入值timestamp ''Thu Feb 12 07:14:19 2015' ,id 4c:64:33:e9 and id :24我需要提取iso密钥值63 ,4 and 6如何使用mongo db

0 个答案:

没有答案