Create a Collection
First Select Or Create a database.
Using db.createCollection ( "yourCollectionName" ) method you can explicitly create Collection.
Using show collections command see all collections in the database.
The db.createCollection() method has the following parameters:
Parameter Type Description
name string The name of the collection to create.
options document Optional. Configuration options for creating a capped collection or for preallocating space in a new collection.
The fllowing example shows the syntax of createCollection() method with few important options