• MongoDB

index / key: MongoDB

Lets look at some basics of indexes in MongoDB. If we have 3 fields in a document - name, age,…

  • MongoDB

Multi-key Index: MongoDB

Lets learn about multikey indexes and how they are efficient in MongoDB. database name: daily collections: gadgets, users Insert documents…

  • MongoDB

Removing Documents: MongoDB

Lets learn how to remove documents from the collection using remove() and drop() methods. test database, names collection > db.names.find().pretty()…

  • MongoDB

Multi-Update: MongoDB

Lets learn how to update all the documents present in a collection using update() method, using the option multi: true…

  • MongoDB

Update with upsert: MongoDB

Lets learn to use upsert option with update() method. upsert basically inserts document into the collection, if there is no…

  • MongoDB

Working With Arrays: MongoDB

Lets learn some of the methods and operators to work with arrays in MongoDB. In this video tutorial, we'll be…

  • MongoDB

Increment($inc) operator: MongoDB

Lets learn how to use $inc operator with update() method in MongoDB. test database, names collection > db.names.find().pretty() { "_id"…

  • MongoDB

Update with UNSET Operator: MongoDB

Lets use $unset operator along with update() method, to update the documents. test database, names collection > db.names.find().pretty() { "_id"…

  • MongoDB

Update with SET Operator: MongoDB

Lets use $set operator along with update() method, to update the documents. test database, names collection > db.names.find() { "_id"…

  • MongoDB

Update Method: MongoDB

Lets learn how to update MongoDB document using update() method. test database, names collection > db.names.find().pretty() { "_id" : ObjectId("53c3c4b1a0eddb0a706e4f56"),…