text: from pymongo import MongoClient
  from src.Config import config
  
  
  def getMongoClient() -> MongoClient:
      """
      Get a mongo client from the config, if a connection can't
      be established, the app will fail.
  
      :return MongoClient: Returns a MongoClient connection.
      """
      uri = config.getSetting("database.uri")
      _database = config.getSetting("database.database")
      if not type(uri) is str or not type(_database) is str:
          raise Exception("Both database.uri and database.database are required in the config to run Thunderhawk.")
  
      return MongoClient(uri).get_database(_database)
  