couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Koberg <>
Subject Re: drill into a doc with a GET?
Date Thu, 08 Jan 2009 16:25:11 GMT

On Jan 8, 2009, at 10:59 AM, Dean Landolt wrote:
> A collection in xquery terms is really nothing more than a tag with  
> a few
> supporting APIs.

A collection is an XPath thing used in host languages, XSLT and XQuery  
being most natural. It makes hierarchies easy.

> What does it gives you that you can't get right out of the
> box with couch?

- the ability to have a hierarchy without you having to explicitly  
list/manage children in a parent document.
- the ability to narrow/limit the documents given to a map function
- more fine tuned GET, PUT and DELETE

Also, a GET request on a collection would return a kind of JSON  
directory listing.


View raw message