code: function(limit, offset) {
      const self = this.chain()._unresolve() // if the collection is already resolved, return a unresolved and empty copy!
  
      offset = offset || self.getInternal('offset') || 0
  
      if (typeof limit === 'string') limit = parseInt(limit)
      if (typeof offset === 'string') offset = parseInt(offset)
  
      if (!isNaN(limit)) {
        self.setInternal('limit', limit)
        self.setInternal('no_relation_cache', true)
      }
      if (!isNaN(offset)) {
        self.setInternal('offset', offset)
        self.setInternal('no_relation_cache', true)
      }
  
      if (!limit) {
        self.clearInternal('offset', offset)
        self.clearInternal('limit', limit)
      }
  
      return self
    }
docs: Limit the resultset to `n` records
  @class Model
  @method limit
  @param {integer} limit - The limit as a number.
  @param {integer} offset - Optional offset.
  
  @see Model.exec
  
  @return {Model}