incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <>
Subject Re: Get all documents of a certain type.
Date Tue, 06 Nov 2012 22:05:47 GMT
You can query with ?startkey=product&endkey=productZZZZ&include_docs=true to get all
the product docs back. 

If they contain a lot more info than just the SKU's I'd make  a view.

On Tuesday, 6 November 2012 at 21:58, Kevin Burton wrote:

> In my Couch database I have a mixture of documents. The documents that I am
> interested in have an Id of 'product-xxxxxxx' or 'order-xxxxxx'. The
> "product" documents have a property of SKU that is a string. I would like to
> form a query to get a list of all the product SKUs. Does this require a view
> in the design document or can it be done all in one request? Thank you.

View raw message