문제

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