I have been working on my application using a combination of CouchDB and Angular technologies.
To retrieve all documents, I have implemented the following function:
getCommsHistory() {
let defer = this.$q.defer();
this.localCommsHistoryDB.allDocs({include_docs: true, group: true}).then((doc) => {
defer.resolve(doc.rows.map(row => row.doc));
}, () => {
defer.reject();
});
return defer.promise;
}
Now my question is, how can I retrieve all designs?