Create a collection in mongodb
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 7, 2022, 1:21 AM EST
https://www.c-sharpcorner.com/UploadFile/f0b2ed/mongodb-day-4-basic-of-collection/
Amit MohantyRank #112 · 20K reputationPosted Nov 6, 2022, 11:57 PM EST
db.createCollection(name, options) is used to create collection.
For more details check the link
https://www.javatpoint.com/mongodb-create-collection