Closed bergmark closed 13 years ago
... and sample usage
backend.__createViews("all", [{
name : "User",
map : function (doc) {
if (doc.className === "User") {
emit(null, doc);
}
}
}, {
name : "Transaction",
map : function (doc) {
if (doc.className === "Transaction") {
emit(null, doc);
}
}
}]).now();
Closing this, check the pull request instead.
It takes only one view as args, and adding a second one causes an Exception.Conflict.
Working solution: