def parse_meta(obj, response):
    """
    Get ``_id`` and ``_rev`` from response
    and update document with updated values
    """

    if "_id" in response.data:
        obj._id = str(response.data.get("_id"))

    obj._rev = str(response.data.get("_rev"))

    return response