def id_query(doc_id):
    """Create a query for a document with the given id.

    Parameters
    ----------
    doc_id : |ObjectId|
        The document id to match.

    Returns
    -------
    dict
        A query for a document with the given `doc_id`.

    """
    return {'_id': doc_id}