Tag Archives: remove

MongoDB – Insert,Update,Upsert and Delete Examples – CRUD

In MongoDB we have to use either insert() or save() method to add the document to a collection Insert Single document > db.employee.insert(      {      “employee_id”:1101,      “name”:”Prashanth”,      “sal”:90000,      “dob”: new Date(1983,2,3,5,20),      “department”:          [              ‘DB Amdin’,’DB Developer’          ],      “Location”:”New York”      }); Insert Multiple document – We have to use … Continue reading

Posted in MongoDB, Uncategorized | Tagged , , , , , , | Leave a comment