couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "HttpViewApi" by PaulCarey
Date Mon, 20 Oct 2008 10:13:04 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by PaulCarey:

The comment on the change is:
Added include_docs

    * skip=number of rows to skip
    * group=true ''Version 0.8.0 and forward''
    * reduce=false ''Trunk only (0.9)''
+   * include_docs=true ''Trunk only (0.9)''
  ''key'', ''startkey'', and ''endkey'' need to be properly JSON encoded values (for example,
startkey="string" for a string value).
@@ -169, +170 @@

  If a view contains both a map and reduce function, querying that view will by default return
the result of the reduce function. The result of the map function only may be retrieved by
passing ''reduce=false'' as a query parameter.
+ The ''include_docs'' option will return the associated document for map functions that emit
a key, but a null value. 
  == Debugging Views ==
  When creating views, CouchDB will check the syntax of the submitted JSON, but the view functions
themselves will not be syntax checked by the Javascript interpreter. And if any one of the
view functions has a syntax error, none of the view functions in that design document will
execute. Perhaps test your functions in a temporary view before saving them in the database.

View raw message