Is it possible to execute a command such as db.eval("return new Date()")
from MongoDB Compass?
Right now I see only collection query commands like filter, project, sort, etc.
Yes, Mongo compass provides only filter option(Query Bar) to do queries on specific collection.
Connect to MongoDB database Then type mongo command to run the shell. Now you are in the Mongo shell. If you want, you can run the mongo and mongod without the command prompt. To do this, go to the installation location and double click on the mongod and mongo applications.
Mongo compass provides only filter option (Query Bar) to do queries on specific collection :(
You can read how it works - https://docs.mongodb.com/compass/master/schema/#query-bar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With