Satish

  • MongoDB

index / key: MongoDB

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

12 years ago
  • 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…

12 years ago
  • 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()…

12 years ago
  • MongoDB

Multi-Update: MongoDB

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

12 years ago
  • 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…

12 years ago