Correct Answer : db.upsert(doc)
Explanation : The syntax for using the PouchDB “Upsert” plug-in to insert or update a document is “db.upsert(doc)“.
Upsert
db.upsert(doc)
Correct Answer : db.find(query)
Explanation : The syntax for using the PouchDB “Find” plug-in to query a database is “db.find(query)”.
db.find(query)
Correct Answer : To provide a simplified query syntax
Explanation : PouchDB’s “Find” plug-in provides a simplified query syntax for querying the database.
Correct Answer : To permanently delete a database
Explanation : PouchDB’s “destroy” API allows you to permanently delete a database, removing it from the file system.