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] Trivial Update of "View Snippets" by JanLehnardt
Date Sat, 10 Jan 2009 19:54:26 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 JanLehnardt:
http://wiki.apache.org/couchdb/View_Snippets

The comment on the change is:
best practices

------------------------------------------------------------------------------
  
  {{{
  map: function(doc) {
+   if (doc.user_id) {
-   if (doc.user_id) emit(doc.user_id, null)
+     emit(doc.user_id, null);
+   }
  }
  }}}
  

Mime
View raw message