def from_mongo(data):
    if not data:
        return None

    data['id'] = str(data['_id'])
    return data
# [END from_mongo]
Return a new `VecWrapper` that is a view into this one.
dataset/ETHPy150Open GoogleCloudPlatform/getting-started-python/2-structured-data/bookshelf/model_mongodb.py/from_mongo--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/vec_wrapper.py/VecWrapper.get_view