I think MongoDB Compass is an incredibly powerful software using which one can do easy queries and manipulations to data. I also like the UI - its clutter free and easy to use.
I want to request an additional feature in Compass which isn’t currently there:
Viewing sub collections as dropdowns (Tree structure)
Generally, sub collections are namespaced using a period(.) and they make sense since the data becomes easy to organise and work with.
The feature I want is something like this -
For subcollections ‘2020.06.02’, ‘2020.06.01’, ‘2020.05.31’ and ‘2019.01.01’ under ‘log’ database, the collections would be shown in this format
Say we have nx.ny.na.nb…(n - nodes, x y a and b are integers) type collections
- If only a single final collection exists under a particular parent node, then the final collection is directly displayed under the parent node without further nesting.
- The root node is always nested.
- If a parent node is also a final collection, then the parent node is nested and the final collection is displayed as a child of itself.
- If a subcollection ends with a period(.), its treatment will be same as point 3.
So if n10.n20 is the only sub collection under n0.n1 and n0.n2 has n66, n55, n66.n95, n55.n85, n66., n66.n95.n54 and n55.n85.n86 as sub-collections the output would be this -
Adding a search bar to search for collections would also be helpful for those who know exactly what they are looking for.
Implementing this would greatly improve readability, and de-clutter the collections for databases.