couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "How to store hierarchical data" by PaulBonser
Date Fri, 05 Dec 2008 02:16:36 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 PaulBonser:
http://wiki.apache.org/couchdb/How_to_store_hierarchical_data

------------------------------------------------------------------------------
  
  == Getting a subtree ==
  
- To get all the nodes which are underneath a specific node, I implemented the view's reduce
function as follows:
+ To get all the nodes which are underneath a specific node, I implemented the view's map
function as follows:
  
  {{{
  function(doc) { 

Mime
View raw message