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...


Write the syntax for creating a collection and dropping a collection in mongodb.



Write the syntax for creating a collection and dropping a collection in mongodb...

Answer / Sneha Kumari

[{"create": "use <database_name>ndb.createCollection('<collection_name>')", "drop": "db.<database_name>.dropCollection('<collection_name>')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

What is the role of use command?

1 Answers  


How to install mongodb on our machine?

1 Answers  


What do you mean by a replica set in mongodb?

1 Answers  


In mongodb how do you use $set to update a nested value?

1 Answers  


What is orm mongodb?

1 Answers  


How to set primary key in mongoose?

1 Answers  


What is storage engine in mongodb?

1 Answers  


What is the difference between mongodb and couchdb?

1 Answers  


what is objecld composed of?

1 Answers  


What is a ‘namespace’?

1 Answers  


What is the difference between mongodb and mysql?

1 Answers  


What is mongoose odm?

1 Answers  


Categories