

InterviewSolution
Saved Bookmarks
1. |
Which of the following statement will insert 400 documents in to the testData collection?(a) insertData("test", "testData", 200)(b) insertData("test", "testData", 400)(c) insertData("test", "testData", 600)(d) all of the mentionedI got this question during an interview.I want to ask this question from Generate Test Data in chapter MongoDB CRUD Concepts and Operation of MongoDB |
Answer» CORRECT option is (b) insertData("TEST", "testData", 400) The explanation is: If the collection and DATABASE do not exist, MongoDB creates them implicitly before INSERTING DOCUMENTS. |
|