You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/10 20:54:26 UTC
[Couchdb Wiki] Trivial Update of "View Snippets" by JanLehnardt
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);
+ }
}
}}}