couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: Getting the value of a key in a single doc(Does this require a view)
Date Sat, 18 Dec 2010 17:03:24 GMT
On Sat, Dec 18, 2010 at 11:56 AM, Josh803316 <> wrote:
> Question:
> If I know my doc id and my key name, what url should I get to find the value
> of a single key in a document?  Does this have to be done in a created view
> by sending the id to the view as part of the query string and returning only
> the value where the passed matches that doc._id?
> Just wondering if there was a builtin way to get the value from a single doc
> or if it required a view.

You could do it with a _show. Though technically a view would probably
be faster. Especially if you have common combinations of doc id/keys.

Paul Davis

View raw message