@@ -29,79 +29,109 @@ Query Bar
29
29
30
30
.. include:: /includes/extracts/query-bar-results.rst
31
31
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.
35
35
36
36
.. figure:: /images/compass/query-bar-documents-view.png
37
- :figwidth: 805px
37
+ :figwidth: 696px
38
38
39
39
.. include:: /includes/extracts/query-bar-type-documents.rst
40
40
41
+ .. seealso::
42
+
43
+ :doc:`query-bar`
44
+
41
45
.. _compass-view-documents:
42
46
43
47
View Documents
44
48
--------------
45
49
46
50
Use 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.
50
70
51
- .. _documents-list- view:
71
+ .. figure:: /images/compass/doc- view.png
52
72
53
- List View
54
- ~~~~~~~~~
73
+ Expand Embedded Objects and Arrays
74
+ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
55
75
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.
61
79
62
- .. figure:: /images/compass/doc-view.png
80
+ Encrypted Fields
81
+ ~~~~~~~~~~~~~~~~
63
82
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
67
84
68
- .. _documents-table-view:
85
+ .. figure:: /images/compass/encrypted-fields-list.png
86
+ :figwidth: 696px
87
+ :alt: Encrypted field in list view
69
88
70
- Table View
71
- ~~~~~~~~~~
89
+ .. tab:: Table View
90
+ :tabid: table-view
72
91
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 .
75
94
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
78
97
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.
81
101
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
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85
104
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.
90
109
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.
93
112
94
- .. figure:: /images/compass/table-view-expand-nested-elem.png
113
+ .. figure:: /images/compass/table-view-expand-nested-elem.png
114
+ :figwidth: 696px
95
115
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``.
100
120
101
- .. figure:: /images/compass/doc-table-view-nested.png
121
+ .. figure:: /images/compass/doc-table-view-nested.png
122
+ :figwidth: 696px
102
123
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
105
135
106
136
.. _insert-documents:
107
137
@@ -189,24 +219,36 @@ the data type from ``ObjectID`` to ``string`` and then overwrite the
189
219
Clone Documents
190
220
---------------
191
221
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::
194
223
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
197
226
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
200
238
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.
204
241
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.
206
244
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.
210
252
211
253
.. figure:: /images/compass/clone-doc2.png
212
254
:figwidth: 702px
@@ -216,16 +258,25 @@ before you insert the new document.
216
258
Modify Documents
217
259
----------------
218
260
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
220
271
221
- .. figure :: /images/compass/edit-doc.png
222
- :figwidth: 765px
272
+ .. tab :: Table View
273
+ :tabid: table-view
223
274
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:
227
277
228
- .. figure:: /images/compass/table-view-modify.png
278
+ .. figure:: /images/compass/table-view-modify.png
279
+ :figwidth: 696px
229
280
230
281
After you click the pencil icon, the document enters edit mode:
231
282
@@ -318,19 +369,26 @@ Reverting a Change
318
369
While modifying a document, you have the option to revert changes made to a
319
370
field prior to saving the modified document.
320
371
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
325
383
326
- .. figure:: /images/compass/revert-doc-list-view.png
384
+ .. tab:: Table View
385
+ :tabid: table-view
327
386
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.
332
390
333
- .. figure:: /images/compass/revert-doc-table-view.png
391
+ .. figure:: /images/compass/revert-doc-table-view.png
334
392
335
393
Cancel Changes
336
394
~~~~~~~~~~~~~~
@@ -341,23 +399,34 @@ click the ``Cancel`` button.
341
399
Delete Documents
342
400
----------------
343
401
344
- From the :guilabel:`Documents` view, you can delete documents by
345
- hovering over the document and selecting the trash icon:
402
+ .. tabs::
346
403
347
- .. figure :: /images/compass/delete-doc.png
348
- :figwidth: 740px
404
+ .. tab :: List View
405
+ :tabid: list-view
349
406
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:
353
408
354
- .. figure:: /images/compass/table-view-delete.png
409
+ .. figure:: /images/compass/delete-doc.png
410
+ :figwidth: 696px
355
411
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:
358
414
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
361
431
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