MongoDb Compass Query Input

I have a query like this

{ 
     createdAt: { 
         $gte:new Date("2023-06-01"),
         $lte:new Date("2023-07-01")
     },
     user:ObjectId('61f8a56588ee0e53887a59de'),
     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.

2 Likes

Thanks,
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
image

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