Compass
32 results found
-
Date Tags for Easier Querying of Date Fields
I propose adding a feature called "Date Tags" to MongoDB Compass, which would allow users to query date fields more easily. Date Tags would serve as shorthand for commonly used date queries, enhancing user efficiency and readability.
Example Use-Case:
Consider the task of finding all documents where the createdAt field was set to "yesterday". Normally, the query would look something like:{ "createdAt": { "$gte": ISODate("2023-10-17T00:00:00"), "$lt": ISODate("2023-10-18T00:00:00") } }
With Date Tags, this could be simplified to:
{ "createdAt": #yesterday }
Proposed Date Tags:
#today
#yesterday
#lastNDays
#lastNHours
#lastNMinutes
#others
Each tag would automatically be translated to the corresponding…
1 vote -
Remove the Insight badge blocking the view to my query
There is a insight badge that does not merit that location(see attachment), and stands on the way to modify the queries.
1 vote -
Change collection on a saved query
In the My Queries section it would be nice to be able to select which collection you want to be able to run the query against or to be able to copy the query to another collection.
At the moment each query is 'locked' to the collection it was oringally created for.
This means if i want to run the same query against another collection i have to open it and copy the text from the aggregation pipeline from the query then open the collection i want to run it on and copy the text into the aggregation pipline.
1 vote -
RANDOM VALUES USING THE OBJECTID
Hi,
This is the basic suggestion from my side.we have a unique "_id" in each document while inserting the data can we make any changes in your code for example in our company we have one scenario while working on the aggregation query they need auto-generated value in numbers so it is not possible in the MongoDB.
so I thought we can do that thing based on the _id. because we have a unique field then i converted the _id to string and separated the numbers and alphabetic separately but we don't have unique values the after separating the numbers…
1 vote -
Changes in the objectID which is unique.1
Hi,
This is the basic suggestion from my side.we have a unique "_id" in each document while inserting the data can we make any changes in your code for example in our company we have one scenario while working on the aggregation query they need auto-generated value in numbers so it is not possible in the MongoDB.
so I thought we can do that thing based on the _id. because we have a unique field then i converted the _id to string and separated the numbers and alphabetic separately but we don't have unique values the after separating the numbers…
1 vote -
Query console like the one in Datagrip
We need a query console like the one in the Datagrip IDE from JetBrains so that we can make any query as well as add comments or saving all these queries in the MongoDB Compass
1 vote -
Explain Plan and query to work on all valid queries -- if an official driver works the Compass should be able to help debugging
Mongo Compass Explain Plan cannot work on queries which are using common Java available syntax. Having no way to use Explain Plan on valid queries, without modifying the query, should be a feature.
{ "_id" : { "$in": [{ "$binary" : "6Uk1UVZWl+krPObxzA3wtg==", "$type" : "03" },{ "$binary" : "60Xp1sJ9nMiT6cPy3GA1ig==", "$type" : "03" }] } }
should be a valid query in Mongo Compass since it is in Java AND the following error which is returned from both query area and Mongo Compass Explain Plan should not occur for such a query:
cannot nest $ under $in
One should NOT have…
1 vote -
New query from text
It would great to have a feature that allows importing a query from text in compass similar to the aggregation pipeline from text feature. Currently if someone has a long multiline find query which includes filter, project, sort methods then the user needs to copy each of the query segments separately and paste them into designated lines in the expanded query options view.
Importing queries from text would improve support team's efficiency that utilise the compass when trying to analyse application queries manually.1 vote -
Filter By Hexadecimal
When filtering by number, it would be nice to be able to filter by Hex (Base16) and Binary (Base2) values (ie. { field: 0x12345678 } or { field: 0b10101010 }.
1 vote -
Cast _id: number to string
Every time I type { _id: 12345 } in the Filter, I get zero results, until I realize that I forgot the quotes. Could Compass automatically convert numeric _id values to strings before running the query?
1 vote -
Display/use escaped characters like "\n" for line break in document editor
I have text fields that may contain "invisible" special characters like a line-break, which is commonly represented as "\n". Another example might be "\t" for tab, but there may also be other invisible unicode characters.
I would like to be able to edit/save documents in MongoDB Compass that contain such characters.
The current behaviour is that these characters are completely lost when the document is in edit mode and saved (updated). Manually inserting "\n" in a text field does not insert a line break, but literally a backslash + "n".
Example document:
{
"_id": "***",
"text": "Hello,\n\nThis is my message."…1 vote -
点击按钮没反应
点击Export To Language 白屏,无反应,系统信息:macos 10.14.6 (18G2022)
1 vote
- Don't see your idea?