Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 83757 invoked from network); 1 Oct 2008 04:16:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2008 04:16:41 -0000 Received: (qmail 67141 invoked by uid 500); 1 Oct 2008 04:16:38 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 67099 invoked by uid 500); 1 Oct 2008 04:16:38 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 67083 invoked by uid 99); 1 Oct 2008 04:16:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 21:16:38 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pauljbarry3@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 04:15:38 +0000 Received: by wa-out-1112.google.com with SMTP id l24so184642waf.12 for ; Tue, 30 Sep 2008 21:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:x-google-sender-auth; bh=JkShsMyzSnW0X/bYFATFYZoV8t4dCNjbfSDOgBeh4wM=; b=U0zZyC/Gym9BYrLKz0qi1pRhjo9cgLCCvfs1xUqjobzc/snIxEeUThqhxc+8Z93C1F hWav840bR3oCbLXVRAUqV5iCOcgQmHg5ZtttaJcvfIclWmX2/9bY5KPpmvEwC3Rmb5TK TreKKtnd4MsF+UGWYexM8nh1KYk2XIkJet7II= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :x-google-sender-auth; b=rO3Sbw9BtAAy8VeLeGGZmB677vReQxSmsoSPqtgWSscdTZ2s7Vwpj1xOZ/x1zfy/du zq5EZNZn9DcemAOzMz049ba9kuJ+9dOg//GW0qX/quYghM5cajmR42S3GOwvqQrZZkn+ 6JxX4ypT9dK8Wm24eyTCotDaYDR3fBe1TqGuE= Received: by 10.114.24.5 with SMTP id 5mr8633827wax.160.1222834562581; Tue, 30 Sep 2008 21:16:02 -0700 (PDT) Received: by 10.114.147.5 with HTTP; Tue, 30 Sep 2008 21:16:02 -0700 (PDT) Message-ID: Date: Wed, 1 Oct 2008 00:16:02 -0400 From: "Paul Barry" Sender: pauljbarry3@gmail.com To: couchdb-user@incubator.apache.org Subject: Handling many-to-many type queries MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_77863_324075.1222834562571" X-Google-Sender-Auth: 40f4bf7a69f101f1 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_77863_324075.1222834562571 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Say I have 2 document types, User and Group. A user can be in many groups and a Group can have many users. So I store an array of group ids in each user document. Is there a way to write a view that returns all of the group documents for a given user? ------=_Part_77863_324075.1222834562571--