I have a collection like this:
{
'datetime': some-date,
'lat': '32.00',
'lon': '74.00'
},
{
'datetime': some-date,
'lat': '32.00',
'lon': '74.00'
}
How can I get the latest record from MongoDB, where the datetime is the latest one? I want only a single record.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…