unset

  • 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"…

10 years ago