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)