Connect from the IDE to a MongoDB database

Gain access to the database from the IDE and do all the work in the same window.

To connect to a MongoDB database, head over to the Database tool window on the right side of the IDE and click + (macOS) / New (Windows/Linux). Select Data Source then MongoDB as the data source type. Customize the name of the data source, connection details, then click on the Test link to ensure everything is ok.

Once everything is done, a Console tab will appear and you can now query the database from the IDE. You can also explore it from the Database tool window, and select which parts to hide or show from it.

Note: You may need to download a database driver for the IDE first. If you see a Download driver link, you'll need to click on that before you can connect to the database.


Related Resources

Zero to Document Hero - Introduction to MongoDB
Once upon a time, relational databases, or RDMS (think SQL), were the only data store in town. But now there’s a competitor, a group of non-SQL (aka NoSQL) databases, including document databases such as MongoDB.
Write SQL queries using popular database packages
Work with SQL queries and get completion and other features automatically.
Query MongoDB databases
Run any queries you want against the database from the comfort of your IDE.