get only return latest revision of document
majidgolshadi opened this issue · comments
Majid Golshadi commented
Based on couchdb doc I try this code but it's only return last data version
db.get('rabbit', {open_revs: ["7-6b29424ebe73f22bbef54611c302b849"]}, function(err, body) {
console.log(body); // return 10th rev
});
How can I fetch the older version of a doc?
Majid Golshadi commented
Finally I found the solution
db.get('rabbit', {rev: "7-6b29424ebe73f22bbef54611c302b849"}, function(err, body) {
console.log(body);
});