Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Including referenced documents in viewResults #88

Open
stefanotto opened this issue Mar 1, 2013 · 1 comment
Open

Including referenced documents in viewResults #88

stefanotto opened this issue Mar 1, 2013 · 1 comment
Assignees

Comments

@stefanotto
Copy link

In JS my view would look like this:

function map(doc) {
    if(doc.type == comment)
        emit([doc.author], {_id: doc.entry_id})
}

I would query this view with the "include_docs" and "key" parameters to get all "entry" documents that were commented by the author (string) provided in the key.

I hear the feature of including a document other than the one that emitted the row isn't yet implemented. It would be great to have it!

Thanks!!

@ghost ghost assigned tleyden Jul 24, 2013
@jchris
Copy link
Contributor

jchris commented Jul 24, 2013

this follow the value._id feature is pretty darn useful

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants