Wednesday, April 16, 2014

Update document in mongodb

Basic syntax of update() method is as follows
db.COLLECTION_NAME.update
(SELECTIOIN_CRITERIA, UPDATED_DATA)