1.

How Can You Update An Existing Document In Pouchdb Database?

Answer»

Every time you CREATE a document, a NEW field _rev is get GENERATED. It is CALLED revision marker. The _rev's value is a unique random number, which is changed every time we MAKE changes to the document.

The db.put() method is used along with _rev value to update a document.

Every time you create a document, a new field _rev is get generated. It is called revision marker. The _rev's value is a unique random number, which is changed every time we make changes to the document.

The db.put() method is used along with _rev value to update a document.



Discussion

No Comment Found