Hello there,
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
2020
06
2020.06.02
2020.06.01
2020.05.31
2019
2019.01.01
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 -
n0
n0.n1.n10.n20
n2
n66
n0.n2.n66
n0.n2.n66.
n95
n0.n2.n66.n95
n0.n2.n66.n95.n54
n55
n0.n2.n55
n85
n0.n2.n55.n85
n0.n2.n55.n85.n86
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.