1.

Which of the following operation adds a new document to the users collection?(a) add(b) insert(c) truncate(d) dropThe question was posed to me in a job interview.My doubt is from CRUD Concepts in chapter MongoDB CRUD Concepts and Operation of MongoDB

Answer» RIGHT choice is (b) insert

To explain I WOULD say: For the update and delete operations, you can specify the CRITERIA to select the DOCUMENTS to update or remove.


Discussion

No Comment Found

Related InterviewSolutions