Closed embrown30 closed 9 years ago
fetchRevs
is similar to fetch, except that include_docs
is false.
What you want to achieve is not possible with a single query. However, you can retrieve all revisions of a single document via open_revs
set to all
:
db.get('somedocid', { open_revs: 'all' })
See CouchDBs documentation for GET /{db}/{docid}
.
I'm using the following to get all revs of a document but only one rev is returned:
I get this returned:
As you can see, _rev starts with three.. so there are other revisions of the document I'm not getting. Is this what the function is supposed to do. Get ALL Revs of the document, not just the latest? Thanks!