Navigation

View Documents

The Documents tab provides three ways to access documents:

List View
The default document view. Documents are shown as individual members of a list. In this view you can easily expand embedded objects and arrays.
JSON View
Documents are shown as properly-formatted JSON objects. In this view Compass uses extended JSON to display the data types of fields where appropriate.
Table View
Shows documents as rows of a table, with document fields shown in the table columns. With this view, you can more easily see which documents contain specific field values.

Use the View buttons to select which view you would like to use:

View Selection Highlight

Documents list view
Documents JSON view
../../_images/doc-table-view.png

You can reorder the table columns by clicking and dragging the column headings. Reordering the columns is a strictly cosmetic change and does not change the underlying data itself.

Expand Embedded Objects and Arrays

To toggle the expansion of embedded objects and array elements, hover over the target document and click the arrow in the top-left corner.

Expand embedded objects list

To toggle the expansion of embedded objects and array elements, hover over the target document and click the top arrow on the left side of the document.

To expand individual objects and arrays, click the arrow to the left of the desired field.

Expand embedded objects JSON

To view nested object fields and array elements, hover your cursor over a field with a value type of Object or Array and click the button with outward-pointing arrows which appears on the right side of the field.

Compass opens a new tab in the Table View corresponding to the nested element.

../../_images/table-view-expand-nested-elem.png

The following example displays the delays object nested within the flightStats collection documents. The new tab displays the two properties of the delay object: arrivalRunwayDelayMinutes and departureRunwayDelayMinutes.

../../_images/doc-table-view-nested.png

To return to the original table display, click on the first tab in the Table View which displays the name of your collection.

Encrypted Fields

Compass obscures document fields encrypted with Field-Level Encryption (FLE). Compass displays the values of these fields as a series of asterisks. You cannot modify the value of a field encrypted with FLE.

Encrypted field in list view

Compass obscures document fields encrypted with Field-Level Encryption (FLE). Compass displays the values of these fields as a series of asterisks. You cannot modify the value of a field encrypted with FLE.

Compass obscures document fields encrypted with Field-Level Encryption (FLE). Compass displays the values of these fields as a series of asterisks. You cannot modify the value of a field encrypted with FLE.

Encrypted field in table view

Document Refresh Behavior

Compass refreshes the returned documents when you run a new query in the Query Bar. When you re-run the same query, Compass does not re-query the database for new documents.