Lecture Notes
When this video was originally recorded, for MongoDB 2.6, the format was:
> db.collection.update( query_document , update_document , [ upsert_boolean , [ multi_boolean ] ] )
This is no longer the recommended format.
We now recommend:
> db.collection.update( query_document, update_document, options_document )
where options_document contains key:value pairs such as:
multi : true/false,
upsert : true/false,
writeConcern: document
No comments:
Post a Comment