req.resource = await options.model.where({
      id: req.params.id
    }).fetch({
      transacting: trx,
      withRelated: options.withRelated ? _.castArray(options.withRelated): []