AdminMassimiliano (Admin, MongoDB)
My feedback
28 results found
-
2 votes
An error occurred while saving the comment -
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedIn the aggregation builder, it is possible to disable the stage preview (see screenshot attached) and only enable it when you want to take a look at the results. Would that be a good way to solve your use case?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedThank you for submitting this request, Dushyant.
This is not something we support in Compass today, although we are looking at how we can enable users to work with multiple connections/clusters at the same time. We'll keep your request in mind and reach out if we have more questions.
In the meantime, you have 2 options:
1. if you are using Atlas, you can set up a Data Federation instance (https://www.mongodb.com/docs/atlas/data-federation/overview/) where you map your separate clusters to virtual collections and then run an aggregate as if they were the same cluster2. you can use the MongoDB shell from the terminal and do more or less what you expected to do in your example: you can keep 2 connections open at the same time (with the connect() method), run your first aggregate, store the results in an array, and then inject the array into the second pipeline using the $documents stage (https://www.mongodb.com/docs/manual/reference/operator/aggregation/documents/).
-
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedThis is already possible. Or were you looking for something different?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedThere are a couple of ways to do that:
1. pass parameters with `eval` mongosh --eval 'parameter=value' yourscript.js, where the script can then read the parameters as variables
2. if at the end of your script you call exit(), whatever you put after that can be used as argument that you read in process.argv. -
12 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedWith Compass 1.31 (currently in beta), we have a solution for all the pain points described in the original suggestion, even though the solution is different from the suggested one:
- As we've done since Compass 1.21, the connection string text field keeps keeping the password hidden unless the user explicitly chooses to show it
- Favorite connections with SSH tunneling or other settings will be saved correctly and all the options will be used when reusing the connection.An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedStarting from Compass 1.21, the password for favorites is hidden by default.
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedFrom Compass' perspective, exporting data is the same as running a query and is therefore subject to the same permissions at the db level.
Who is the "admin" this your scenario? The admin of the computer? If yes, then I suppose they could restrict the user from writing to disk on the machine where Compass runs. We do have customers that make their users to use Compass installed on a sandboxed VM for this type of restricted access use cases.
-
5 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedAdmittedly, we currently don't have a shortcut to run the current line.
We do, however, have shortcuts to run the whole playground (Ctrl + Alt + R on Win/Linux and Cmd + Option + R on macOS) or the current selection (Ctrl + Alt + R on Win/Linux and Cmd + Option + S on macOS).
Shortcuts are also customizable from VS Code's global shortcuts config screen. Just search for MongoDB.
-
3 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedAfter typing a query, just pressing Enter is enough to execute it.
Is there a reason for preferring Ctrl+Enter over just Enter?
-
11 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedWe intentionally made playgrounds stateless so they are more flexible and each run is repeatable and does not depend on a database being or not being selected.
However, I see how that can become a pain point for the "run selected lines" use case. For those situations you currently have 2 options:
1. you repeat use('db') multiple times.
2. you use db.getSiblingDB('db').getCollection('coll')... so then you can run the specific statement/command only. -
3 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedHow would you imagine that to work? Is it just the convenience of the entry point in the collection menu that would take you to an editor or were you thinking of something else?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedThank you for bringing that up.
We are actually in the process to remove all offensive terminology from all products.
The new MongoDB Shell currently still includes isMaster() for backwards compatibility as it's probably one of the most used commands. However, the new command to do the same thing is db.hello()/rs.hello().
Properties like slaveDelay will be gone from the server response too.
-
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedThank you for your suggestion, Andrew. Let us look into how we can improve that – especially the sorting order.
In the meantime, I just wanted to mention that there is a way to search for a db or collection. Please see the screenshot attached.
-
5 votesAdminMassimiliano (Admin, MongoDB) shared this idea ·
-
3 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedHow 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.
-
3 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedIf this suggestion refers to autosuggestion when typing a query, that already works (see screenshot attached).
-
3 votesAdminMassimiliano (Admin, MongoDB) supported this idea ·
-
47 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedJust 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) commentedCompass 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) commentedThis 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)
-
10 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commentedI 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) commentedThank 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.
Compass already supports a Socks5 proxy: https://www.mongodb.com/docs/compass/beta/connect/ssh-connection/#socks5