Select from following answers:- db.Student.insert({ name: "Student1", age: "12", class: "8" })

- db.Student.update({ name: "Student1", age: "12", class: "8" })
- db.Student.find({ name: "Student1", age: "12", class: "8" })
- db.Student.upsert({ name: "Student1", age: "12", class: "8" })
- All Above
The insert method in MogoDB ensures the entry of a new record into the collection. So the answer is
db.Student.insert({ name: "Student1", age: "12", class: "8" })
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator