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 "EntityRelationship" by WoutMertens
Date Mon, 13 Apr 2009 22:07:45 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 WoutMertens:
http://wiki.apache.org/couchdb/EntityRelationship

------------------------------------------------------------------------------
     }
  }
  }}}
- Note that this view uses key arrays to enforce sorting, just to show you the possible variations.
The disadvantage is that you can't use ''key="Scott"'' to search for Scotts groups, you need
to use ''startkey=["Scott"]&endkey=["Scott",{}]''.
+ Note that this view uses key arrays to enforce sorting, just to show you the possible variations.
The disadvantage is that you can't use ''key="Scott"'' to search for Scotts groups, you need
to use ''startkey=[''''''"Scott"]&endkey=["Scott",{}]''.
  
  Unlike the previous method, you can't use ''include_docs=true'' now to get all information
about the contacts that are in a group or the groups that a contact has. The reason is that
the original documents that were used in generating the view are not the contact or group
documents, they are the relationship documents. If you want that information, you'll have
to fetch it separately.
  

Mime
View raw message