Table View is the spreadsheet view in Studio 3T that supports advanced features like showing embedded fields, stepping into array-valued columns, and hiding columns - even when dealing with massive datasets.
Show/hide embedded fields – Ctrl + Enter (⌘ + Enter)
Hide/show columns – Ctrl + T (⌘ + T)
Step into cell – Shift + Enter OR Shift + Double-Click
Step into column – Enter
Table View is one of three ways to view MongoDB data in Studio 3T, which displays query results in structured rows and columns similar to a spreadsheet. This allows the most novice of users to navigate MongoDB data.
It is always accessible in the top-right drop-down menu of the Result Tab.
Edit data in-place
To edit data in-place, double-click on any cell, edit the value, and press Enter.
Sort data in ascending or descending order
To sort data, simply click on the field headers.
Show and hide embedded fields
Some fields contain embedded fields. In the Customers collection, address is an example of a field that has four embedded fields: street, city, state, and zip_code.
Here is a screenshot of the address field, viewed through Tree View:
Table View allows these embedded fields to be expanded alongside other columns for easier data analysis.
To show or hide a field’s embedded fields:
Right-click on the field with embedded field(s) and choose Show Embedded Fields or Hide Embedded Fields
Press Ctrl + Enter (^ + Enter)
Show or hide all embedded fields
It is also possible to show (or hide) all embedded fields within a MongoDB collection:
Right-click on any field and choose Show All Embedded Fields or Hide All Embedded Fields
Track expanded fields
A field will show a dot before its name to indicate that its embedded fields have been expanded.
Hide and show columns
Along with showing embedded fields, the ability to hide columns is also equally handy to reduce data clutter.
Building off of the example above, the address field can be hidden to clean up the view.
To hide (and show) columns:
Right-click on a field within a column and choose Column > Hide Column (or Show Column)
Press Ctrl + T (⌘ + T)
Step into array-valued columns
Table View allows stepping into a whole column of arrays at the same time, which means array elements will be displayed with increasing index on a single line, each line representing another array.
Restore default view
To restore the default view (the view seen upon first opening a collection):
Right-click on any field and choose Restore Default View
Assign colors to field types
With Studio 3T 2018.5, you can assign colors to field types, so you can see query results colored according to their type:
- Go to Studio 3T > Preferences
- Click on the Type Colors tab
- Configure the fields and colors as desired