标签: node.js couchdb cradle
使用以下代码:
db.changes({'include_docs':true}).on('response', function (res) { res.on('data', function (change) { console.log(change); }); });
我能够获取数据库中已更改的所有(旧的和新的)文档,但是如何获取最近更改的文档?
答案 0 :(得分:0)
查看since参数,the changes docs
since