Home »
MCQs »
MongoDB MCQs
The below example can be used to create a collection to store the ___
32. The below example can be used to create a collection to store the ___.
db.Employee.insert
(
{
...
...
}
)
- Employee records
- Students record
- Product records
- All of the mentioned above
Answer: A) Employee records
Explanation:
db.Employee. Insert collections can be used to store information about employees. The quickest and most straightforward method of creating a collection is to insert a record (which is nothing more than a document containing Field names and Values) into an existing collection. This means that if the collection does not already exist, one will be created.