from typing import Dict


def compose_exists_query(field: str) -> Dict[str, Dict[str, bool]]:
    """
    Compose a MongoDB query that checks if the passed `field` exists.

    :param field: the field to check for existence
    :return: a query

    """
    return {field: {"$exists": True}}