0
我想在couchdb中创建一个动态视图,并且我想问如何在沙发视图中访问参数键。 像如下:视图中的访问键参数
function(doc) {
if ((doc['couchrest-type'] == 'User') && ((doc['email'] != null) || (doc['login'] != null))) {
if (doc['email'] == parameter[key]) {
emit(doc['email'], doc);
} else if (doc['login'] == parameter[key]) {
emit(doc['login'], doc);
}
}
}
,什么是CouchDB中动态视图的缺点。 以及如何在Couchrest模型中添加这样的动态视图。
感谢, Shenouda博特