def get_cves_mongodb(cves, client):
    """Connect to MongoDB and obtain cves from list of ids.

    Args:
        cves ([array<str>]): list of cve ids
        client ([mongodbclient]): mongodb client

    Returns:
        [array]: CVEs from database
    """
    db = client.main.cve
    return db.find(
        {"cve_id": {"$in": cves}},
        {"cve_id": 1, "created": 1, "modified": 1, "cpes": 1, "_id": 0},
    )