I\'m looking for the CouchDB JS view equivalent of the following LinQ query :
var query =
from f in context.Feed
where !(from ds in conte
I know this is an old post, but having been confronted with the same problem I think that Marcin's answer is correct but incomplete.
In my case I used the following list function to select get all rows except the ones with a certain excludeId:
function(head, req) {
start({ 'headers': { 'Content-Type': 'application/json' } });
var rows = [];
while (row = getRow()) {
if (!req.query.exceptId || doc.documentId != req.query.exceptId) {
rows.push(row);
}
}
send(JSON.stringify({ total_rows: rows.length, rows: rows }));
}
you can read more here