Robomongo is a user interface for interacting with MongoDB. It is pretty straight-forward and easy to understand. This tool simplifies the way of working with Mongo databases.
MongoDB has the default CLI (command-line interface) which works fine until you need to execute complicated operations. Most of existing command lines in popular OS really suck with text input. And this is where Robomongo comes up to help with a pretty GUI.
Connect Robomongo to local MongoDB
To install Robomongo, download it from the official site. Then finish the installation wizard and run it. You will see the window for creating a connection to existing MongoDB instance. Note, that you need to have MongoDB up and running on your computer.
Right click on the connections area and select “Add” option. You will see the popup for connection settings. It should be filled with default values which you don’t need to change if you installed your MongoDB with default settings.
Then new connection should appear. Click connect. Now you should see the contents of this Mongo instance. On the left there is a list of databases. You can create your own by clicking right button on the Connection sign and selecting Create database.
For each database in Robomongo you can see a section of collections. Double click on the collection will open a new tab with all records. It is an execution of command db.collection.find() which is also displayed on the top of the tab. Each record is editable in a very usable form.
You can open a new tab and execute any command you want there.
There are also 3 modes for rendering the records:
- Tree (default) – renders fields in order of nesting level (see in the screenshot above)
- Table – looks similar to RDBMS
- Text – in JSON format