InterviewSolution
Saved Bookmarks
| 1. |
How do I create a collection in MongoDB? Write it's syntax |
|
Answer» In MongoDB, developers do not need to CREATE a collection. It will GET created automatically when a document will be inserted. The syntax for CREATING a collection in MongoDB is: db.createCollection(name,OPTIONS) |
|