Compass
25 results found
-
Autogenerated random values in numbers based on 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 from the objectId.
can…
6 votes -
Add Ai to stage wizard
currently stage wizard has built in suggestions, maybe if it becomes integrated with AI would become much more amazing
1 vote -
Avoid running queries on an ongoing condition writing. (match, lookup...)
when performing a match, lookup or other similar ops, Don't run the query as I write the conditions but only when I'm done. this will improve speed significantly and will prevent crashes due to lack of memory on very large sets.
when an operation that filters data occurs, you can add a small toggle btn when I'm done writing the query, and only then perform the search.
another idea is to add a boolean field named done which on init will be set to false, and when a user is done writing the query it sets it last to true.…1 vote -
Integrate GPT for aggregation builder
I would really love a aggregation helper tool that can take prompts to generate snippets and if you want to ask for openAI api key thats also fine, if you don't want to adhere the cost.
2 votesThis is now in public preview, and will be rolled out to all Compass users throughout October 2023.
Please let us know what you think if you try it and have feedback.
-
Aggregation pipeline stage labels
We would like the ability to input custom labels on aggregation pipeline stages. This would allow us to categorize or add more top/app-level context to each stage.
A draft of the implementation is in the attached uploaded image, where you can click to add label on the title bar of each stage card, with ability to view the label onHover of each stage of the execution bar.
1 vote -
cross cluster lookup (kind of)
Hi,
This is more of an add-on request for the aggregate().Lets say we have two clusters , second clusters is derived from first cluster ( i-e some of the object ids in second cluster exist only in first cluster ).
Now I want to do a lookup for the id in the first cluster from the second cluster , which is not possible.
So , can we have another optional parameter in the aggregate function which allows us to pass the documents , over which we can apply the required stages ( i-e after using find() on cluster 2…
1 vote -
Aggregation editor improvements
settings for the following:
- Turn off auto-pairs (some people really are not used to typing with it)
- Vim keybinds (somewhat joking, but also not)
- View full documentation within Compass.
- Currently it seems the website manual is the only place to view documentation, being able to see it within Compass would be helpful
- Quick reference for operators / expressions
- Font settings (increase, boldness, change font).Really just turning off auto-closing brackets would be great.
1 vote -
more aggregation pipelines are needed and most of the time if we reach above 30 pipeline its gets struck , and more hard to use
more aggregation pipelines are needed and most of the time if we reach above 30 pipeline its gets struck , and more hard to use
1 vote -
Indentation/newlines for Aggregation: Export to Language/PHP
I tried to use the the aggregation pipeline feature Export to Language, for PHP. The pipeline was quite complex, so I was surprised when I copied it into PHP Storm that the entire pipeline was on a single line, making it quite hard to read. PHP Storm will not add newlines for you when you request Code Reformatting, so the only way to make it readable was to add the newlines manually before reformatting, which is time confusing and error prone.
IMO it would be preferable if the pipeline was exported with appropriate use of newlines and indentation.
1 vote -
Possibility to set variables used in pipeline stages
Hi !
It would be really handfull to have the possibility to use variables in the pipeline stages:var userId = ObjectId("5f61dfadc1e8960001700da8'")
{
$match : {user.id : userId}
}for complex queries, it would avoid having to modify the id at each stages.
Thanks !8 votes -
aggregation pipeline verification before deleting
When opening a saved pipeline - the "open" button is adjacent to the bin (cancel) button and clicking on the bin deletes the pipeline without a chance to regret.
2 votes -
Store aggregation pipeline export language
Each time you start a new aggregation, the export language is always "Python 3"., so if you're using different language, you have to set the wanted language each and every time you change the active collection or open a new tab...
The default selected language could be:
- the last used language (easier but still efficient)
- the last used language for this connection
- the last used language for this collection
- a language configured as "preferred language" when adding a connection as favorite
- a language configured as "preferred language" at the app level...2 votes -
I would like $match expression to not evaluate 15*24*60*60*1000 expression with the date, instead use the literal expression
When translating the following aggregation code, Compass evaluates the expression with the date. I would like to have a feature where it translates the literal expression to the available language.
Example of aggregation code:
"date": {$gte: new Date((new Date().getTime() - (15 * 24 * 60 * 60 * 1000)))}1 vote -
App Freezes on Some Aggregation Queries
When I accidentally write a $lookup pipeline query with non existing field name the application crashes. I think this bug is very annoying.
1 vote -
Prompt to save pipeline in case Compass is closed accidentally
It's a human tendency to forget to continuously save an authored pipeline while constructing it. We might create a large pipeline and forget to save it before closing MongoDB Compass.
Similar, to other softwares please add a prompt to Compass in a situation when changes are not saved before closing it.
10 votes -
autosave
autosave in aggregation builder
1 vote -
Edit facet stages
Right now, if we add a facet stage into the aggregation pipeline, we have to write the rest of the aggregation query manually. Users should be able to edit the sub-pipelines within a facet stage.
2 votes -
Ability to copy paste an entire pipeline as text and split it into stages of the builder UI
The pipeline builder is powerful for constructing an aggregation pipeline. However, it would be good to copy an entire pre-written pipeline into the aggregation builder as text and have it syntactically divide the text into the aggregation builder stages UI.
This will help make pipelines written previously and not saved on Compass easily modifiable over copying each stage manually into the builder UI, which is a tedious process for long pipelines.
1 vote -
Lock order or sort documents in Aggregation Pipeline Builder's preview area
When we create a pipeline, it'd help if we could check the same documents data in the different stages ( now their preview is from randomly selected documents AFAIK ), so it's inconvenient to inspect one specific documents preview phases through all the stages.
Possible solutions:
1) lock the first stage's documents' order and apply it to the following stages (if possible, eg. if the stage is $group, then we can not apply the rule to the next stage)
2) set a sorting ( if possible ) of documents. But only for the preview.1 vote -
Aggregation Error Verbosity
It would be a real boon to have the aggregation pipeline builder report errors with any degree of verbosity. Right now it just says "unknown error ocurred", and I have to move my pipeline down to the shell to get a real error message.
3 votes
- Don't see your idea?