@@ -29,79 +29,109 @@ Query Bar
2929
3030 .. include:: /includes/extracts/query-bar-results.rst
3131
32- From the :doc:`query bar </query-bar>`, you can specify the query, and
33- if you click the :guilabel:`Options`, you can also specify query
34- options.
32+ From the :doc:`query bar </query-bar>`, you can specify a query to
33+ filter the displayed documents. Click :guilabel:`Options` to
34+ specify query options.
3535
3636.. figure:: /images/compass/query-bar-documents-view.png
37- :figwidth: 805px
37+ :figwidth: 696px
3838
3939.. include:: /includes/extracts/query-bar-type-documents.rst
4040
41+ .. seealso::
42+
43+ :doc:`query-bar`
44+
4145.. _compass-view-documents:
4246
4347View Documents
4448--------------
4549
4650Use the Documents tab to view the documents inside of a collection.
47- Two different views are available to access documents:
48- :ref:`List View <documents-list-view>` and
49- :ref:`Table View <documents-table-view>`.
51+ Two different views are available to access documents: List View and
52+ Table View.
53+
54+ List View is the default document view. To switch to Table View, click
55+ the :guilabel:`Table` button to the right of the :guilabel:`List`
56+ button to access the document Table View.
57+
58+ .. figure:: /images/compass/table-btn.png
59+ :figwidth: 696px
60+
61+ .. _docs-list-table-view:
62+
63+ .. tabs::
64+
65+ .. tab:: List View
66+ :tabid: list-view
67+
68+ List View shows documents as individual members in a list
69+ format.
5070
51- .. _documents-list- view:
71+ .. figure:: /images/compass/doc- view.png
5272
53- List View
54- ~~~~~~~~~
73+ Expand Embedded Objects and Arrays
74+ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
5575
56- When the Documents tab loads, Compass displays the List View, which
57- shows all documents that match your query criteria
58- (or all documents within the sample if no query criteria was
59- specified). The documents are shown as individual members in a list format,
60- as shown in the following example:
76+ To toggle the expansion of embedded objects and array elements in
77+ a document, hover over the target document and click the arrow in
78+ the top-left corner.
6179
62- .. figure:: /images/compass/doc-view.png
80+ Encrypted Fields
81+ ~~~~~~~~~~~~~~~~
6382
64- To toggle the expansion of nested objects and array elements in a
65- document, hover over the target document and click the arrow in the
66- top-left corner.
83+ .. include:: /includes/fact-fle-description.rst
6784
68- .. _documents-table-view:
85+ .. figure:: /images/compass/encrypted-fields-list.png
86+ :figwidth: 696px
87+ :alt: Encrypted field in list view
6988
70- Table View
71- ~~~~~~~~~~
89+ .. tab:: Table View
90+ :tabid: table-view
7291
73- Compass also provides the ability to view your documents in a table,
74- rather than as individual items in a list .
92+ Table view shows documents as rows of a table. The document
93+ fields are shown in the table columns .
7594
76- Click the :guilabel:`Table` button to the right of the
77- :guilabel:`List` button to access the document Table View.
95+ .. figure:: /images/compass/doc-table-view.png
96+ :figwidth: 696px
7897
79- .. figure:: /images/compass/doc-table-view.png
80- :figwidth: 805px
98+ You can reorder the table columns by clicking and dragging the
99+ column headings. Reordering the columns is a strictly cosmetic
100+ change and does not change the underlying data itself.
81101
82- You can reorder the table columns by clicking and dragging the column
83- headings. Reordering the columns is a strictly cosmetic change and does
84- not change the underlying data itself.
102+ Expand Embedded Objects and Arrays
103+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85104
86- To view nested object fields and array elements, hover your cursor over
87- a field with a value type of ``Object`` or ``Array`` and click the
88- button with outward-pointing arrows which appears on the right side of
89- the field.
105+ To view nested object fields and array elements, hover your
106+ cursor over a field with a value type of ``Object`` or ``Array`` and click the
107+ button with outward-pointing arrows which appears on the right side of
108+ the field.
90109
91- This opens a new tab in the Table View corresponding to the nested
92- element.
110+ |compass-short| opens a new tab in the Table View corresponding
111+ to the nested element.
93112
94- .. figure:: /images/compass/table-view-expand-nested-elem.png
113+ .. figure:: /images/compass/table-view-expand-nested-elem.png
114+ :figwidth: 696px
95115
96- The following example displays the ``delays``
97- object nested within the ``flightStats`` collection documents. The
98- new tab displays the two properties of the ``delay`` object:
99- ``arrivalRunwayDelayMinutes`` and ``departureRunwayDelayMinutes``.
116+ The following example displays the ``delays``
117+ object nested within the ``flightStats`` collection documents. The
118+ new tab displays the two properties of the ``delay`` object:
119+ ``arrivalRunwayDelayMinutes`` and ``departureRunwayDelayMinutes``.
100120
101- .. figure:: /images/compass/doc-table-view-nested.png
121+ .. figure:: /images/compass/doc-table-view-nested.png
122+ :figwidth: 696px
102123
103- To return to the original table display, click on the first tab
104- in the Table View which displays the name of your collection.
124+ To return to the original table display, click on the first tab
125+ in the Table View which displays the name of your collection.
126+
127+ Encrypted Fields
128+ ~~~~~~~~~~~~~~~~
129+
130+ .. include:: /includes/fact-fle-description.rst
131+
132+ .. figure:: /images/compass/encrypted-fields-table.png
133+ :figwidth: 696px
134+ :alt: Encrypted field in table view
105135
106136.. _insert-documents:
107137
@@ -189,24 +219,36 @@ the data type from ``ObjectID`` to ``string`` and then overwrite the
189219Clone Documents
190220---------------
191221
192- It is also possible to insert new documents by cloning
193- the schema and values of an existing document in a collection.
222+ .. tabs::
194223
195- To clone a document, hover over the desired document
196- and click the :guilabel:`Clone` button.
224+ .. tab:: List View
225+ :tabid: list-view
197226
198- .. figure:: /images/compass/clone-doc.png
199- :figwidth: 740px
227+ You can insert new documents by cloning the schema and values of
228+ an existing document in a collection.
229+
230+ To clone a document, hover over the desired document
231+ and click the :guilabel:`Clone` button.
232+
233+ .. figure:: /images/compass/clone-doc.png
234+ :figwidth: 740px
235+
236+ .. tab:: Table View
237+ :tabid: table-view
200238
201- Cloning a document works the same way in the
202- :ref:`Table View <documents-table-view>` as it does in the
203- :ref:`List View <documents-list-view>`:
239+ You can insert new documents by cloning the schema and values of an
240+ existing document in a collection.
204241
205- .. figure:: /images/compass/table-view-clone.png
242+ To clone a document, hover over the desired document
243+ and click the :guilabel:`Clone` button.
206244
207- Clicking the :guilabel:`Clone` button creates a new insert dialog with
208- the same schema and values. You can edit any of these fields and values
209- before you insert the new document.
245+ .. figure:: /images/compass/table-view-clone.png
246+ :figwidth: 696px
247+
248+ When you click the :guilabel:`Clone` button, |compass-short| opens the
249+ document insertion dialog with the same schema and values as the cloned
250+ document. You can edit any of these fields and values before you insert
251+ the new document.
210252
211253.. figure:: /images/compass/clone-doc2.png
212254 :figwidth: 702px
@@ -216,16 +258,25 @@ before you insert the new document.
216258Modify Documents
217259----------------
218260
219- To edit a document, hover over the document and select the pencil icon:
261+ .. tabs::
262+
263+ .. tab:: List View
264+ :tabid: list-view
265+
266+ To modify a document, hover over the document and click the pencil
267+ icon:
268+
269+ .. figure:: /images/compass/edit-doc.png
270+ :figwidth: 696px
220271
221- .. figure :: /images/compass/edit-doc.png
222- :figwidth: 765px
272+ .. tab :: Table View
273+ :tabid: table-view
223274
224- Modifying a document works the same way in the
225- :ref:`Table View <documents-table-view>` as it does in the
226- :ref:`List View <documents-list-view>`:
275+ To modify a document, hover over the document and click the pencil
276+ icon:
227277
228- .. figure:: /images/compass/table-view-modify.png
278+ .. figure:: /images/compass/table-view-modify.png
279+ :figwidth: 696px
229280
230281After you click the pencil icon, the document enters edit mode:
231282
@@ -318,19 +369,26 @@ Reverting a Change
318369While modifying a document, you have the option to revert changes made to a
319370field prior to saving the modified document.
320371
321- To revert changes to a document in the
322- :ref:`List View <documents-list-view>`, hover over the edited field
323- and click the :guilabel:`revert icon` which appears to the left of the
324- field's line number.
372+ .. tabs::
373+
374+ .. tab:: List View
375+ :tabid: list-view
376+
377+ To revert changes to a document in the
378+ List View, hover over the edited field
379+ and click the :guilabel:`revert icon` which appears to the left of the
380+ field's line number.
381+
382+ .. figure:: /images/compass/revert-doc-list-view.png
325383
326- .. figure:: /images/compass/revert-doc-list-view.png
384+ .. tab:: Table View
385+ :tabid: table-view
327386
328- To revert changes to a document in the
329- :ref:`Table View <documents-list-view>`, click the
330- :guilabel:`revert icon` which appears on the right side of the edited
331- table element.
387+ To revert changes to a document in the
388+ Table View, click the :guilabel:`revert icon` which appears on the
389+ right side of the edited table element.
332390
333- .. figure:: /images/compass/revert-doc-table-view.png
391+ .. figure:: /images/compass/revert-doc-table-view.png
334392
335393Cancel Changes
336394~~~~~~~~~~~~~~
@@ -341,23 +399,34 @@ click the ``Cancel`` button.
341399Delete Documents
342400----------------
343401
344- From the :guilabel:`Documents` view, you can delete documents by
345- hovering over the document and selecting the trash icon:
402+ .. tabs::
346403
347- .. figure :: /images/compass/delete-doc.png
348- :figwidth: 740px
404+ .. tab :: List View
405+ :tabid: list-view
349406
350- Deleting a document works the same way in the
351- :ref:`Table View <documents-table-view>` as it does in the
352- :ref:`List View <documents-list-view>`:
407+ To delete a document, hover over the document and click the trash icon:
353408
354- .. figure:: /images/compass/table-view-delete.png
409+ .. figure:: /images/compass/delete-doc.png
410+ :figwidth: 696px
355411
356- After clicking the delete button, the document is flagged for deletion
357- and Compass asks for confirmation that you want to remove the document:
412+ After you click the delete button, the document is flagged for deletion.
413+ |compass-short| asks for confirmation that you want to remove the document:
358414
359- .. figure:: /images/compass/delete-doc2.png
360- :figwidth: 740px
415+ .. figure:: /images/compass/delete-doc2.png
416+ :figwidth: 740px
417+
418+ .. tab:: Table View
419+ :tabid: table-view
420+
421+ To delete a document, hover over the document and click the trash icon:
422+
423+ .. figure:: /images/compass/table-view-delete.png
424+ :figwidth: 696px
425+
426+ After you click the delete button, the document is flagged for deletion.
427+ |compass-short| asks for confirmation that you want to remove the document:
428+
429+ .. figure:: /images/compass/delete-flag-table-view.png
430+ :figwidth: 696px
361431
362- After you confirm, Compass deletes the document
363- from the collection.
432+ Once you confirm, Compass deletes the document from the collection.
0 commit comments