Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 40207 invoked from network); 20 Jul 2010 14:15:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 14:15:20 -0000 Received: (qmail 96214 invoked by uid 500); 20 Jul 2010 14:15:19 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 95884 invoked by uid 500); 20 Jul 2010 14:15:16 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 95876 invoked by uid 99); 20 Jul 2010 14:15:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 14:15:15 +0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zachary.zolton@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 14:15:07 +0000 Received: by wwb34 with SMTP id 34so972114wwb.23 for ; Tue, 20 Jul 2010 07:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=+riIWaOnmvLGb2gIiONX5GgFYsN4vDV2IxEGKtyqw+Q=; b=s5IGI9i8IVf9ZXevdPcMiyhngC1zHLnrqXVKcFOPECCkh46Pc+xzMMZWEwpCqQTGG7 yFFMxBPCAqEmUEhLK/b1n2+CZxgyB3Mxm2Mt/87/Qq5S7OjI5GhUc14cFExpbmlaF6wA UgZmm9T5jYZH9k3l7gdGtvnpWgvjOgRc3uHzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Ye4G+5WClflWhRfPLDOhaYqjScrXGBb3erX7lblUvIr7X0Zq4a/08G/A33r68/Kqe8 7m+xjgNGe3QKCCd2KqVmi8bgyz24YA+kvolyCpMMidcpz426rDyA4URSnd6pxiJlBDWh uSU829C43aoRH6nd3VYP83j1kidjOR3y4xxO4= Received: by 10.227.138.70 with SMTP id z6mr5593315wbt.22.1279635287311; Tue, 20 Jul 2010 07:14:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.159.213 with HTTP; Tue, 20 Jul 2010 07:14:26 -0700 (PDT) In-Reply-To: References: From: Zachary Zolton Date: Tue, 20 Jul 2010 09:14:26 -0500 Message-ID: Subject: Re: Will include_docs still work when querying a list (couch 0.10.0)? To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org @Steven, what Mikeal is alluding to is that when querying a list/view with include_docs=true, the object returned by getRow() will have a "doc" property that contains the document for that row. It is then your responsibility to use the document object, in your list function, to return whatever data you want to be in the response. On Mon, Jul 19, 2010 at 7:54 PM, Mikeal Rogers wrote: > var row = getRow(); > > row.doc is the document. > > Cheers, > > :) > > -Mikeal > > On Mon, Jul 19, 2010 at 5:39 PM, Steven Prentice < > steven.prentice.87@gmail.com> wrote: > >> Can you please provide some explanation? because for me it is not working. >> My view function outputs some JSON relating to the values in the view using >> toJSON, when I request the list/view all I get is the JSON from the list >> function and not the entire document(s)...regardless of include_docs being >> true or false. >> >> On Mon, Jul 19, 2010 at 2:03 PM, Mikeal Rogers > >wrote: >> >> > yes. >> > >> > On Sun, Jul 18, 2010 at 8:54 PM, Steven Prentice < >> > steven.prentice.87@gmail.com> wrote: >> > >> > > Hi, >> > > I am using a list function to filter a view, basically the list >> function >> > > takes some parameters, filters the view and sends back JSON using the >> > > toJSON >> > > function to my application. I am just wondering if I add include_docs >> > that >> > > I >> > > am still able to retrieve the docs as well, now that I have a raw JSON >> > > object being sent back? >> > > >> > > Cheers >> > > Steve >> > > >> > >> >