Text based pipeline mode
I know you can import the pipeline from a language but I want to completely disable GUI pipeline builder and just have a text editor. The UI is too slow and clunky, just give me a text editor to directly edit and run an aggregate.
This feature is available in our latest Compass release, 1.35.0.
-
Justin Chase commented
Thank you @Massimiliano, I just want to point out that I did know about that when this ticket was created. While what you said is true its really not a good enough solution.
-
AdminMassimiliano (Admin, MongoDB) commented
It is possible, with Compass, to copy your aggregation from code and paste it into the tool for debugging: https://docs.mongodb.com/compass/master/import-pipeline-from-text. Once you are done debugging it, you can export it back to code and paste into your code editor.
While this might not be exactly the UX you'd expect, I thought I'd mention that a flavor of this functionality is available in Compass.
-
Mark commented
Totally agree. You really should study what NoSQLBooster does with their UI.
For a professional developer, the most important requirement is that you can cut and paste between your code and the query tool (i.e. Compass). For example, if I'm trying to debug a 100 line aggregation pipeline query, I need to be able to copy that from my code into the tool and immediately start debugging (i.e. editing the query and testing). Until Compass has this capability, I won't consider it.
Thanks.
-
Justin commented
That's fine its just that its not actually easier than text, which is why its a requested feature.
There's no reason why you couldn't show sampled results for each pipeline step in text as well. Each individual step is just a little text editor, well maybe let me click a button and now I'm typing an array of steps.
I'm aware of the vscode plugin but it has its own issues I'm dealing with (doesn't actually connect to atlas, not sure why). I'm just trying to give you feedback on how to make this app better, I can't even export or copy+paste the results of the last pipeline step lol. Its driving me nuts.
-
AdminMassimiliano (Admin, MongoDB) commented
The aggregation pipeline builder in Compass was designed to simplify the task of building complex pipelines with realtime feedback stage by stage.
If you are looking for something that is text-based, perhaps playgrounds in MongoDB for VS Code are what you are looking for: https://www.mongodb.com/products/vs-code.
Another alternative could be the integrated shell (Compass 1.22+) although the editing experience in VS Code playgrounds is much smoother.