Google News
logo
PouchDB - Interview Questions
What is Batch? How to create a batch in PouchDB?
Batch is an array of documents in PouchDB. When you use this method to create documents, it creates unique ids for all the documents in bulk if you not specifies the _id values.

All the documents you have created in PouchDB can be stored in an array and can be passed as a parameter in this method. This method also accepts callback functions as a parameter.

Syntax :
db.bulkDocs(docs, [options], [callback])   ?
Advertisement