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. Try it today.
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 – Right-click on the field with embedded field(s) and choose Show Embedded Fields or Hide Embedded Fields
- Hotkey – Press Ctrl + Enter (^ + Enter)
Show or hide all embedded fields
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.
Copy MongoDB documents as CSV
While on any Result Tab (Visual Query Builder, IntelliShell, SQL Query, Aggregation Editor), choose the documents you want to export, right-click, and select Copy > Copy Selected Documents as CSV – with or without headers.
Copy MongoDB documents to Excel
Right-click on the query results you want to copy to Excel and select Copy > Copy Selected Documents for Excel – with or without headers.
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 – Right-click on a field within a column and choose Column > Hide Column (or Show Column)
- Hotkey – 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.
Auto-size column widths
Click on the Settings icon in the top-right corner of the Results tab and to turn on one of two options:
- Auto-size columns (compact) – Fits column sizes to screen
- Auto-size columns (full values) – Extends column sizes to show entirety of data in the column
You can also turn off auto-sizing altogether by choosing Do not auto-size columns.
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.