Method: Couch::BulkRequest::Get#get_docs_for_view
- Defined in:
- lib/couch.rb
#get_docs_for_view(db, design_doc, view, params = {}) ⇒ Object
Returns an array of the full documents for given view, possibly filtered with given parameters. Note that the ‘include_docs’ parameter must be set to true for this.
Also consider using ‘docs_for_view`
166 167 168 169 170 171 172 173 174 |
# File 'lib/couch.rb', line 166 def get_docs_for_view(db, design_doc, view, params={}) params.merge!({:include_docs => true}) rows = get_rows_for_view(db, design_doc, view, params) docs = [] rows.each do |row| docs << row['doc'] end docs end |