【发布时间】:2021-07-21 23:45:51
【问题描述】:
"_id" : ObjectId("607ce141dfc52641ea652fb2"),
"Timestamp" : ISODate("2020-11-18T02:38:22.000+0000"),
"Class" : "Class A",
"MMSI" : 219022256,
"MsgType" : "position_report",
"Position" : {
"type" : "Point",
"coordinates" : [
54.572058,
11.928778
]
},
"Status" : "Under way using engine",
"RoT" : 0.0,
"SoG" : 0.0,
"CoG" : 264.6,
"Heading" : 207
}
这是我的查询: const ship = await ais 。总计的( [{ $match: { MMSI: 219022256 } }, { $sort: { Timestamp: -1 } }], { 允许磁盘使用:真, } ) .project({ _id: 0 }) .limit(1) .toArray();
【问题讨论】:
标签: javascript node.js arrays mongodb