AdminMassimiliano
(Admin, MongoDB)
My feedback
-
3 votes
AdminMassimiliano (Admin, MongoDB) shared this idea ·
-
1 vote
An error occurred while saving the comment -
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
How would you expect that to work?
If it's just about displaying in your local time zone, in mongosh you could do something like in the screenshot below, by taking advantage of JS' Date object.
-
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
If this suggestion refers to autosuggestion when typing a query, that already works (see screenshot attached).
-
4 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
A workaround for this is to save the aggregation as a view and then export the view.
Not as convenient as just exporting the results of the aggregation but possible, at least if user has enough permission to create a view.
-
2 votes
AdminMassimiliano (Admin, MongoDB) supported this idea ·
-
5 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Just wanted to mention that MongoDB for VS Code could be a viable option for this, if you are looking for an environment that is more editor based: https://www.mongodb.com/products/vs-code.
We are debating whether we should have similar functionality in Compass though.
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Compass 1.22 comes with an embedded shell. Is that close enough to what you are looking for?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
This is already possible. In the aggregation builder, you can click on the arrow next to the "+" button, select "Create new pipeline from text" and paste your pipeline into the dialog that appears (docs here: https://docs.mongodb.com/compass/current/import-pipeline-from-text)
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Right now we don't have a built-in formatter. However, there is a workaround: with the beautify extension (https://marketplace.visualstudio.com/items?itemName=HookyQR.beautify) you can format the file without changing the file extension (Cmd/Ctrl + Shift + P > Beautify file > JS).
-
3 votes
An error occurred while saving the comment 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.
An error occurred while saving the comment 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.
-
4 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
In `mongo`, you can call `load('/my/path/myscript.js')` and we are planning to support the same or a similar API in `mongosh`.
Is that close enough to what you are looking for?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
I investigated this further. Looks like the server does not return the reason for the document to be invalid. The server team is working on it, targeting MongoDB 4.6: https://jira.mongodb.org/browse/SERVER-20547. Once that is available in the server's response, we will surface it in Compass.
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Thank you for the feedback. Let us see what we can do about this. If the server gives us more information back along with the error we can see how to surface it best in the UI.
-
8 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
The new MongoDB shell (built on the node REPL) includes an editor mode (activated with .editor) that provides multiline editing capabilities.
Additionally, in the future, we will support using an external editor by setting the EDITOR environment variable similarly to how mongo does it.
vi mode directly in the REPL is not something we will prioritize now but we'll definitely keep it in mind as a future usability improvement.
AdminMassimiliano (Admin, MongoDB) shared this idea ·
-
5 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
In Compass, you can add a stage after another one with the + button and you can drag and drop stages up and down. Is that enough?
-
5 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
You can switch between tabs with Cmd/Ctrl + Shift + [ and Cmd/Ctrl + Shift + ]
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Can you be a bit more specific, and maybe post a screenshot? Compass shows 20 documents per page and you can scroll the single page to see all the 20 documents. What would be looking for?
-
1 vote
AdminMassimiliano (Admin, MongoDB) shared this idea ·
-
9 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Starting from Compass 1.21, the password for favorites is hidden by default.
-
6 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
In Compass 1.21 that just went out in beta we made a small improvement in this direction.
While the separator is not configurable, when a field contains text with a comma, we wrap it in quotes in the CSV.
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Hi Alice,
what version of Compass are you using? It sounds like you are using 1.19 or older. I suggest you try Compass 1.20 where we introduced a new connect screen and see if that solves the problem for you.
It is possible to export the schema: https://docs.mongodb.com/compass/current/schema/export. Is that close enough to what you are looking for or are you thinking of something different?