Create a database in the folder containing the main files

Hey there, I am kinda new to mongo db but can I make a database in the folder containing my main code files like can I create a serverModels.db or something Kinda like that? like locally

Yes.

A database is a number of collections.
Each collection contains some documents.
Documents are JSON.
You can store JSON in a file, so each collection can be its own file.
The file can be located anywhere you wish.
You then use mongoimport to load each of the collections.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.