code: function getConditions (req) {
    if (req.baucis.conditions === undefined) {
      req.baucis.conditions = {};
      if (req.body.name === undefined) {
        req.baucis.conditions[this.findBy()] = req.body.id || req.body._id;
      } else {
        req.baucis.conditions.name = req.body.name;
      }
    }
    return req.baucis.conditions;
  }
docs: Gets the conditions for finding the resource based on the request.
  
  @param {Object} req
  @return {Object}
  @api private