def get_mongo_monographs_id(collection):
    """ Gets a list of existing ThesisId on Mongo

    Args:
        collection (Collection): collection object to get the ThesisId

    Returns:
        list: the list of ThesisId
    """
    try:
        return list(collection.distinct("ThesisId"))
    except:
        return None