adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define array in mongoose schema?

79


How did mongodb get its name?

60


what is the command syntax for inserting a document?

63