5

Using following code:

db.changes({'include_docs':true}).on('response', function (res) {
    res.on('data', function (change) {
        console.log(change);
    });
});

I am able to get all (old & new) documents that are changed in the database but how can I get documents that have changed recently?

Octavian Helm
  • 39,405
  • 19
  • 98
  • 102
Abhishek
  • 1,999
  • 5
  • 26
  • 52

1 Answers1

0

Look at the since parameter, details in the changes docs

smathy
  • 26,283
  • 5
  • 48
  • 68