Robomongo allows you to run any query against a MongoDB that would use the MongoDB command-line utility. This is a great way to test the queries that you'll write and to view the results.
To use this recipe, you need to have a working installation of MongoDB and have Robomongo installed.
You can use Robomongo to run any query against MongoDB that you would run at the command line. Use the following command to retrieve a single record:
db.getCollection('accidents').findOne()
You can view the results in multiple formats:
By default, Robomongo will show you the results in tree mode as shown in the following screenshot: