Want "expand all" button for documents in view.
It's very convenient to expand all fields of a document recursively. I want this feature for documents in view.
Thank you for sharing your feedback on our portal! There is already an expand all button for some documents in Compass, but unfortunately the button isn't available for collections that are "readonly" in Compass (view, secondary, projection, read-only user, etc..). We have planned work to address this.
-
Lukáš commented
Dear MongoDB support,
I have created PR for this feature on Github: https://github.com/mongodb-js/compass/pull/6177
I was unable to create a ticket in Jira, could you please help?
Thank you in advance.
-
Bruce commented
Betsy,
I see the expand all button for a single document. I do not see expand all for all documents in the documents view. Can you point me to it?If it is not available, will you be addressing this? It would be great if the defaults were the same as Studio 3T.
For motivation to expand ALL documents see my comments below...
I feel like Mongo has not really understood this request and keeps refining individual document expansion.
To be clear, without "Expand ALL Documents within Documents View" Compass is not a useful tool and I do not use it. I use Studio 3T.
Thanks!
-
Vilém commented
It is still not done 1.43.6.
We would like to expand all object/array values in all visible documents at least in the List View.
-
Bruce commented
Here is what is wrong with the current implementation:
1. YML/JSON full expansion should be an option for ALL documents in the collection. Today it only expands per document for YML and per document/field for JSON. In fact, it should default to show all fields for all documents and/or give me control over the default. I am not even sure I understand any reason you would like to see the view you show by default? In most cases 90% of the data is not visible when using objects/arrays in your documents.
2. Search can only search what is visible in the documents view window. So it will not find deeper data if they are not expanded. Huh?
3. Why is the document view window limited to 20 documents? I should be able to set this.To see an example of how this can work try running Studio 3T free version.
1. All documents are expanded by default.
2. Search can find any deep key values.
3. The number of documents fetched for a query is configurable.Here is my scenario and (I often do this as a developer):
1. Build a very simple query for a subset of documents, query result can be in the 100's easily.
2. In the Document view window search for a value in the documents. Maybe look at 2,3,...more instances of this value and observe other state around it. There can be 100's of instances.
3. Repeat with other queries. -
Bruce commented
I appreciate the JSON view, but having to click all fields to expand is a total pain. For my usage, I often times want to see some nested field. This can be 5-6 clicks per document and multiple documents. Ouch!
-
Nicolas commented
Looks like it's done on V 1.36.4