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 (New in Compass 1.20)
- 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:
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.
Copy Documents to Clipboard¶
To copy a document to your clipboard, hover over the document and click the Copy icon:
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 .
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.