Include design documents factoryng

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

Answers:

Answer

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

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.