function fromMongo(item) {
    if (Array.isArray(item) && item.length) {
      item = item[0];
    }
    item.id = item._id;
    delete item._id;
    return item;
  }
function fromMongo(item) {
    if (Array.isArray(item) && item.length) {
      item = item[0];
    }
    item.id = item._id;
    delete item._id;
    return item;
  }
function fromMongo ( item ) { if ( Array . isArray ( item ) && item . length ) { item = item [ 0 ] ; } item . id = item . _id ; delete item . _id ; return item ; }
[START translate]
[ START translate ]