MongoDB Shell запрос последний документ
db.collection.find().limit(1).sort({$natural:-1})
Expensive Eel
db.collection.find().limit(1).sort({$natural:-1})
> db.collection.findOne().sort({'_id':-1}).limit(1)
It work perfectly !
db.collection.find().limit(1).sort({$natural:-1})