If you want the last 5 records of a collection with latest coming first
db.getCollection('collection-name').find().limit(5).sort({$natural:-1})
If you want the last 5 records of a collection with latest coming first
db.getCollection('collection-name').find().limit(5).sort({$natural:-1})