![]() ![]() In there, you can paste the following contents: ) Let us start by creating a new document by clicking on “ADD DATA” -> Insert Document. Since our collection is empty, it is time to add data to it. Once you have created your database and collection, click on the collection to open the data view. Go ahead and insert your database and collection names and click the “CREATE DATABASE” button. The database is created only once a collection is added to the database. The reason why you need to insert a collection name is because MongoDB does not create empty databases. You will then be prompted to insert the database name and a collection name. To create a database, you can simply use the create database button. You can go ahead and check the contents of the local database to see how the data in MongoDB is saved in JSON format. You can read more about the database here: Īs you can see, all the databases are empty except for the local database. However, you will probably not need to modify its contents. The database contains insightful information which could be used for debugging purposes. Local: The local database is used to store instance specific information, such as startup logs, results of command-line operations, etc.If you are curious about the config database, then you can read more about it in this link: ![]() It is discouraged to make changes in this database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |