سؤال

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?

هل كانت مفيدة؟

المحلول

Look at the since parameter, details in the changes docs

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top