update document in database Archive
15 Jun 2014
mongoDB – Update a document in database

As in SQL We use update command for updating a record, We do the same in No SQL databases. DB. We use update command. This approach is known as wholesale update of a document. Suppose we have a document in users collection. > { _id :1, "name": "Mike"} Following is Syntax of update. > db.collection.update(query,