code: function(req) {
  
      return req.options.id || ( req.options.where && req.options.where.id ) || req.allParams()['id'];
    }
docs: Parse primary key value for use in a Waterline criteria
  (e.g. for `find`, `update`, or `destroy`)
  
  @param  {Request} req
  @return {Integer|String}