17

I'm trying to find data using native Mongo queries, but can't do it. It seems mongoDB Compass only provides filter property for fetching data.

As in case of SQL's (say phpmyadmin, mysqlWorkbench, toad), we can easily execute native queries directly in the QueryEditor. Similarly Is there any console (query editor) in mongodb compass where I can execute direct queries? If yes, then tell me the breadcrumb.

Note: I don't want to use robomongo, robo3T and other mongo UI tools.

4

4 回答 4

7

看起来他们正在向 Compass 添加一个外壳:

https://www.mongodb.com/blog/post/new-compass-comes-with-shell

“在 Compass 1.22 Beta 中,我们引入了集成的 MongoDB Shell,它允许您直接从 Compass 运行数据库命令和脚本。”

于 2020-08-17T15:03:17.620 回答
5

我喜欢使用 Robo3T ( https://robomongo.org/ ),它有一个很好的界面并且不像 Compass Query 栏那样限制

于 2019-12-05T17:10:36.300 回答
0

是的,Mongo 指南针仅提供过滤选项(查询栏)来对特定集合进行查询。

要更好地了解如何在查询栏中进行查询,请参阅此

指南针文档:模式查询栏

也看看这个教程MongoDB Compass Query Building

于 2019-02-06T07:14:59.457 回答
0

在 Mongodb Compass 中无法做到这一点,您可以使用其他工具,例如“NoSQLBooster for MongoDB”

于 2019-11-18T01:25:08.233 回答