get the latest field in mongodb collection

C
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})

Source

Also in C: