Using the following code:
db.changes({'include_docs':true}).on('response', function (res) {
res.on('data', function (change) {
console.log(change);
});
});
I can get all (old and new) documents that have been changed in the database, but how can I get recently changed documents?
source
share