Which of the following is the correct command to insert data into MongoDB? Assume that document is a valid JSON document?

All QuestionsCategory: Data ScienceWhich of the following is the correct command to insert data into MongoDB? Assume that document is a valid JSON document?
Anonymous asked 4 years ago

Options:

  1. db.Students.insert(). (document)
  2. db.insert(document)
  3. Students.insert(document)
  4. db.Students.insert(document)
1 Answers
Anonymous answered 4 years ago

The correct answer is:

  1. db.Students.insert(document)