September 2018
Beginner to intermediate
192 pages
4h 37m
English
Command summary (discussed in the following):
use <dbName>; db.<collection>.insertOne({ // document });
use <dbName>; db.dropDatabase();
To create a database in MongoDB, all you need to do is to issue the command use dbName, where dbName is the name of the target database. This alone does not create the database. As shown here when creating the database test, although the customized prompt (see the previous) shows the current database is test, when the command show dbs is executed, test does not appear in the list:

Once you create the first document, in the first collection, ...
Read now
Unlock full access