PouchDB – Fetch Batch You can read/retrieve multiple/bulk documents from a database in PouchDB using the allDocs() method. Syntax Following is the syntax of using the db.allDocs() method of PouchDB. This method accepts an optional callback function. db.allDocs() Example Following is an example of retrieving all the documents in a database named my_database that is […]
Category Archives: pouchdb
PouchDB – Create Document You can create a document in PouchDB using the db.put() method. Syntax Following is the syntax of using the db.put() method of PouchDB. You can store the document that is to be created in PouchDB, in a variable and pass as a parameter to this method. In addition, this method also […]
PouchDB – Overview This chapter provides a brief introduction to PouchDB along with its features and how it works. What is PouchDB? PouchDB is an open source in-browser database API written in JavaScript. It is modelled after &minuss; a NoSQL database. Using this API, we can build applications that work offline and online. It internally […]