couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
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 <josh803316@gmail.com> 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 query.value.id 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.

HTH,
Paul Davis

Mime
View raw message