Table View

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

 

Basics

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.

Download the Customers collection to follow along the examples covered in the tutorial.

Edit data in-place

To edit data in-place, double-click on any cell, edit the value, and press Enter.

In-place data editing using Table View.

Sort data in ascending or descending order

To sort data, simply click on the field headers.

Clicking on a header will arrange data in ascending or descending order.

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:

The Address fields in Tree View

Table View allows these embedded fields to be expanded alongside other columns for easier data analysis.

Embedd fields are highlighted here in Tavble View.

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

It is also possible to show (or hide) all embedded fields within a MongoDB collection:

Right-click

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.

To make navigation easier, a breadcrumb trail and the complete JSON path are always displayed to reflect that field’s context within the overall data set. 

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.

Restore default view

To restore the default view (the view seen upon first opening a collection):

Right-click

Right-click on any field and choose Restore Default View

Updated on September 27, 2018

Was this article helpful?

Related Articles