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

Is mongodb free to use?

1 Answers  


What happen when an index does not fit into ram?

1 Answers  


what is the role of profiler in mongodb?

1 Answers  


How can you take database backup in mongodb?

1 Answers  


What are the disadvantages of mongodb?

1 Answers  


What is the usage of profiler in mongodb?

1 Answers  


Does mongodb have a schema?

1 Answers  


Why is mongodb used?

1 Answers  


What are the differences between mongodb and mysql?

1 Answers  


Why are mongodb data files large in size?

1 Answers  


When will data be on more than one shard?

1 Answers  


Can you edit long shell operations with an external text editor?

1 Answers  


Categories