How to run Native mongo query in mongoDB Compass?

Jabongg picture Jabongg · Feb 6, 2019 · Viewed 12.9k times · Source

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.

Answer

JosephScript picture JosephScript · Aug 17, 2020

Looks like they're adding a shell to Compass:

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

"In Compass 1.22 Beta we are introducing the integrated MongoDB Shell, which allows you to run database commands and scripts directly from Compass."