Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the syntax to create a collection and to drop a collection in mongodb?



What is the syntax to create a collection and to drop a collection in mongodb?..

Answer / Parul Sonker

To create a collection, use the following command: `db.createCollection(collectionName)`. To drop a collection, use the following command: `db.collectionName.drop()`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

Is mongodb a language?

1 Answers  


Is mongodb a framework?

1 Answers  


What is the basic syntax to use index in mongodb?

1 Answers  


Is mongodb faster than sql?

1 Answers  


Can we store images in mongodb?

1 Answers  


What is mongodb atlas?

1 Answers  


Is mongodb compass open source?

1 Answers  


in mongodb, What is crud?

1 Answers  


How does mongodb provide consistency?

1 Answers  


Is mongodb object oriented?

1 Answers  


Is mongodb a data lake?

1 Answers  


What is mongodb cluster?

1 Answers  


Categories