向couchdb设计文档添加注释
有没有办法将注释输入couchdb设计文档向couchdb设计文档添加注释,couchdb,couchdb-futon,Couchdb,Couchdb Futon,有没有办法将注释输入couchdb设计文档 查询可能会变得非常神秘,如果能够编写一个简短的人类描述来描述它们的功能,那将是非常好的。如果您想在JS代码中添加注释,那就好了 function (doc) { // comments are ok here if (doc.type === 'user') emit(doc.username); } 但是,您不能向外部JSON添加注释,因为JSON不支持注释 { "views": { "by-name": { //
查询可能会变得非常神秘,如果能够编写一个简短的人类描述来描述它们的功能,那将是非常好的。如果您想在JS代码中添加注释,那就好了
function (doc) {
// comments are ok here
if (doc.type === 'user') emit(doc.username);
}
但是,您不能向外部JSON添加注释,因为JSON不支持注释
{
"views": {
"by-name": {
// you can't put comments here
"map": "function (doc) { ..."
}
}
}