Include design documents factoryng

…衆ロ難τιáo~ 提交于 2020-01-25 09:04:30

问题


The default settings in factoryng filter out design documents. How can I include these design documents?


回答1:


You can define this via the properties() method, e.g.:

var tasks = new Pouchyng('tasks', 'http://localhost:5984', yngutils.ASC);
var config = {
  opts: {
    filter: function (doc) {
      return true;
    }
  }
}; 
tasks.properties({ changes: config, to: config, from: config });


来源:https://stackoverflow.com/questions/26436821/include-design-documents-factoryng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!