SyntaxFix
Write A Post
Hire A Developer
Questions
You can also achieve this through aggregate pipeline.
db.collection.aggregate([{$sort:{age:-1}}, {$limit:1}])