- Python Business Intelligence Cookbook
- Robert Dempsey
- 122字
- 2021-07-30 09:51:49
Using Robomongo to query MongoDB
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.
Getting ready
To use this recipe, you need to have a working installation of MongoDB and have Robomongo installed.
How to do it…
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:
- Tree mode
- Table mode
- Text mode
By default, Robomongo will show you the results in tree mode as shown in the following screenshot:

推薦閱讀
- 大學計算機應用基礎實踐教程
- 算法基礎:打開程序設計之門
- PyTorch Artificial Intelligence Fundamentals
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- Spring實戰(第5版)
- OpenCV 4計算機視覺項目實戰(原書第2版)
- SQL Server 入門很輕松(微課超值版)
- Android 游戲開發大全(第二版)
- PostgreSQL 12 High Availability Cookbook
- Mastering Vim
- Learning Puppet
- PhoneGap 3.x Mobile Application Development Hotshot
- Android Application Programming with OpenCV 3
- Mastering PyCharm
- Modular Programming with PHP 7