Skip to content Skip to sidebar Skip to footer

Include Design Documents Factoryng

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

Solution 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 });

Post a Comment for "Include Design Documents Factoryng"