如何从mongoDB meteor js获取Objectid?

时间:2016-07-29 12:33:00

标签: html5 mongodb meter

我正在使用meteor和mongoDB我有这个mongoDB对象:

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

我想获得此对象的{ "_id" : ObjectId("57987ee00b04a118688b6fe7"), "startDate" : ISODate("2016-07-27T09:29:04.341+0000"), "processType" : "import", "marque" : "VPPPP", "inputFile" : "C:\\Orchestra.Data\\CP\\xml\\Booking_PVCP_3753510_20150623_111115.xml", "processQueue" : true, "status" : "finished", "result" : "success", "tasks" : [ { "name" : "import_validation", "startDate" : ISODate("2016-07-27T09:29:04.881+0000"), "endDate" : ISODate("2016-07-27T09:29:04.892+0000"), "message" : "this is a message", "status" : "finished", "resulta" : "error" }, { "name" : "import_GetStockValues", "startDate" : ISODate("2016-07-27T09:29:04.889+0000"), "endDate" : ISODate("2016-07-27T09:29:04.892+0000"), "message" : "this is a message", "status" : "finished", "resulta" : "success" }, { "name" : "import_WriteInExcel", "startDate" : ISODate("2016-07-27T09:29:04.889+0000"), "endDate" : ISODate("2016-07-27T09:29:04.893+0000"), "message" : "this is a message", "status" : "finished", "resulta" : "success" }, ] } 。我怎么能这样做?

0 个答案:

没有答案