MongoDb Compass Query Input

I have a query like this

     createdAt: { 
         $gte:new Date("2023-06-01"),
         $lte:new Date("2023-07-01")
     status: true

In the MongoDB Compass tool, I am not able to see queries at once, is there any easy to look query properly?

Ctrl+Shift+B should reformat your query and display it on multiple lines.


Will it help if an icon to format the query is added to MongoDB Compass?

Somewhat like this as in aggregation we have, so that we can edit query also

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.