ember-couchdb-kit
ember-couchdb-kit copied to clipboard
Views options should be available as an object or raw string
There are both expressions should be available:
options = 'key="%@"&include_docs=true'.fmt(type);
issues = App.Issue.find({type: "view", designDoc: 'issues', viewName: "all_by_board", options: options});
options = {key: type, include_docs: true};
issues = App.Issue.find({type: "view", designDoc: 'issues', viewName: "all_by_board", options: options});