GUI Tools For MongoDB

Introduction

MongoDB has a big disadvantage that it doesn't provide any GUI-style interface for developers. In MongoDB, all administration works are done from command line tools such as the Mongo shell. If we are using other powerful GUI tools like Visual Studio, and Eclipse then it is very difficult or odd to work with a command line without any GUI interface. But there are several third-party tools that provide a GUI interface for MongoDB. Some important GUI tools are the following:

You can download any GUI tool, but I suggest you download the Robomongo GUI tool because it is simple to use and also provide more functionality.

Today I will explain how to install Robomongo and also explain some important features of Robomongo.

How To Install Robomongo?

We can install Robomongo on our machine using some simple steps.

Step 1. First, go to Robomongo's official website and download the Robomongo Management Tools.

Robomongo Management Tools

Step 2. Now run the .exe file of Robomongo and start the installation process.

click next

Step 3. Select the installation location for Robomongo.

Select the installation location

Step 4. Select the start menu folder for Robomongo shortcuts.

Robomongo

Step 5. Complete the installation process.

installation

finish

I hope Robomongo has been installed successfully.

How to run RoboMongo?

Before starting the Robomongo, we require to first run a MongoDB server instance, otherwise, RoboMongo will not work.

For this open the command prompt and run the Mongod command.

run RoboMongo

When you run Robomongo the first time, it requires a MongoDB connection. So click on Create option and generate a MongoDB connection.

generate a MongoDB connection

After creating a MongoDB connection, now you can connect with this connection and start work with Robomongo.

Features of Robomongo

RoboMongo provides some great features like other GUI tools (i.e. syntax highlight, autocomplete, different views mode). But Robomongo doesn't stop to execute the undesired code. Be careful, as you do with the MongoDB shell.

Let us see some important features of Robomongo.

Show All MongoDB Objects

Robomongo shows all the database that are present in the MongoDB server and also show the list of Collections and function of the database. So we can select any database or collection easily and use that.

temp database

Multiple Shell

We can open as many shells as we need, each tab in Robomongo contains a MongoDB shell, and all the shells are fully isolated from each other. Press Ctrl + T to open a new tab.

Multiple Shell

Robomongo provides autocomplete for all objects that are known by JavaScipt runtime. Robomongo also provides autocomplete for database, collection, and document objects.

autocomplete for database

Default View Mode

Robomongo provides the following three Views mode ( tree mode, table mode, text mode ) for documents that makes it easy to read and understand any document.

Tree Mode

Tree Mode

Table Mode

Table Mode

Text Mode

Text Mode

Easy to Execute

In Robomongo we can execute the command by pressing Ctrl +Enter. We can execute all the queries that are written in the shell or select any specific command.

If we use multiple commands, then Robomongo shows the result of each command in a vertical orientation, but we can toggle the result from vertical to horizontal or vice versa using the F10 key.

Vertical Orientation

Vertical Orientation

Vertical Orientation

Horizontal Orientation

Edit Document Directly

In Robomongo we can edit any document directly, we don't require to use the update command. So Robomongo provides an easy and very fast method to edit any document. To edit any document just right-click on the document and select the Edit document option.

Select Edit Document Option

Select Document

Edit Document

edi document

Toolbar to save the script

Save or Open Script

Robomongo provides a great feature in that we can save all the commands of the current open shell as a JavaScript file and further use this JavaScript file and execute all the commands that are written in the JavaScript file.

Save Script: Either press Ctrl+S or use Toolbar to save the script.

check this JavaScript file

When we check this JavaScript file that all the commands of Shell are present in this file.

script

Open Script: In the same way either use Ctrl +O or use Toolbar to open a script.

Summary

Today we learned how to install Robomongo on the system and read some features of Robomongo. If you are a beginner in MongoDB, then I suggest you use the command line tool MongoDB because it will develop your command on programming. If we use any GUI tool in starting then we cant understand programming concepts in an efficient way. So first learn the basics of MongoDB command and after that use any GUI tool.

Thanks for reading this article.


Similar Articles