Home /Posts Tagged "update records in mongodb"


db.collection.update(query, update, options) Modifies an existing document or documents in a collection. The method can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter. By default, the update() method updates a single document. Set the Multi Parameter to update all documents that match the … Continue reading