The Mongo class is deprecated and it is advised to use MongoClient instead, and so it has been replaced with MongoClient.