code: function expand (resource, e) {
      e && [].concat(e)
        .forEach(function (innerResource) {
          var plural = pluralize(innerResource)
          if (db.get(plural).value()) {
            var prop = innerResource + 'Id'
            resource[innerResource] = db.get(plural).getById(resource[prop]).value()
          }
        })
    }
docs: Expand function used in GET /name and GET /name/id