How do I create a collection in mongodb? Write it's syntax
Answer Posted / Jyoti Devi
To create a new collection in MongoDB, you can use the 'db.createCollection()' method. For example, to create a collection named 'collectionName', execute: db.createCollection('collectionName')
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers