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

Including referenced documents in viewResults #88

@stefanotto

Description

@stefanotto

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!!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions