Is it possible to get a all document, verssions (cas)

Can i get all documents version ,
or an older document version by specifying a cas ?
somthing like

cb.get('docID', { CAS: 'somecasID'});

Thanks

1 Like

Hi @doronaviguy,

Couchbase does not store multiple versions of your document, the CAS value is used for optimistic and cooperative concurrency controls.
If you want to store multiple documents (so to speak revisions), you need to handle that on your own. Depending on your requirements you can put multiple versions in one document or store one document per each version.

alright , thanks alot .