def query_for_docs(path, opts={})

      res = query(path, opts.merge(:include_docs => true))

      if res.nil?
        nil
      elsif opts[:raw]
        res
      else
        res.collect { |row| row['doc'] }.uniq
      end
    end
def query_for_docs(path, opts={})

      res = query(path, opts.merge(:include_docs => true))

      if res.nil?
        nil
      elsif opts[:raw]
        res
      else
        res.collect { |row| row['doc'] }.uniq
      end
    end
A shortcut for

   query(path, :include_docs => true).collect { |row| row['doc'] }