couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Trivial Update of "EntityRelationship" by Michael Carrato
Date Sat, 03 Apr 2010 02:13:25 GMT
Dear Wiki user,

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

The "EntityRelationship" page has been changed by Michael Carrato.
The comment on this change is: Modified map function to use correct 'relation' type comparison.


  If you then want to know who is in a group you'll need to use the view (fetch descending
to get the group info first)
  "map":function(doc) {
-    if (doc.type == 'relationship') {
+    if (doc.type == 'relation') {
     } else if (doc.type == 'group') {

View raw message