Skip to content

Commit ed49e7a

Browse files
(DOCSP-7013): Clone and delete documents in JSON mode
1 parent 6c39ba1 commit ed49e7a

File tree

6 files changed

+39
-12
lines changed

6 files changed

+39
-12
lines changed

source/documents/clone.txt

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can insert new documents by cloning the schema and values of
1010
an existing document in a collection.
1111

1212
Select the appropriate tab based on whether you are viewing your
13-
documents in List or Table view:
13+
documents in List, JSON, or Table view:
1414

1515
.. tabs::
1616

@@ -21,7 +21,16 @@ documents in List or Table view:
2121
and click the :guilabel:`Clone` button.
2222

2323
.. figure:: /images/compass/clone-doc.png
24-
:figwidth: 740px
24+
:figwidth: 720px
25+
26+
.. tab:: JSON View
27+
:tabid: json
28+
29+
To clone a document, hover over the desired document
30+
and click the :guilabel:`Clone` button.
31+
32+
.. figure:: /images/compass/json-view-clone.png
33+
:figwidth: 720px
2534

2635
.. tab:: Table View
2736
:tabid: table-view
@@ -30,12 +39,13 @@ documents in List or Table view:
3039
and click the :guilabel:`Clone` button.
3140

3241
.. figure:: /images/compass/table-view-clone.png
33-
:figwidth: 696px
42+
:figwidth: 720px
3443

3544
When you click the :guilabel:`Clone` button, |compass-short| opens the
3645
document insertion dialog with the same schema and values as the cloned
3746
document. You can edit any of these fields and values before you insert
38-
the new document.
47+
the new document. To learn more about inserting documents, see
48+
:ref:`insert-documents`.
3949

4050
.. figure:: /images/compass/clone-doc2.png
41-
:figwidth: 702px
51+
:figwidth: 720px

source/documents/delete.txt

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,53 @@ Delete Documents
77
.. default-domain:: mongodb
88

99
Select the appropriate tab based on whether you are viewing your
10-
documents in List or Table view:
10+
documents in List, JSON, or Table view:
1111

1212
.. tabs::
1313

1414
.. tab:: List View
1515
:tabid: list-view
1616

17-
To delete a document, hover over the document and click the trash icon:
17+
To delete a document, hover over the document and click the
18+
:icon-fa5:`trash-alt` icon.
1819

1920
.. figure:: /images/compass/delete-doc.png
20-
:figwidth: 696px
21+
:figwidth: 720px
2122

2223
After you click the delete button, the document is flagged for deletion.
2324
|compass-short| asks for confirmation that you want to remove the document:
2425

2526
.. figure:: /images/compass/delete-doc2.png
26-
:figwidth: 740px
27+
:figwidth: 720px
28+
29+
.. tab:: JSON View
30+
:tabid: json
31+
32+
To delete a document, hover over the document and click the
33+
:icon-fa5:`trash-alt` icon.
34+
35+
.. figure:: /images/compass/delete-doc-json.png
36+
:figwidth: 720px
37+
38+
After you click the delete button, the document is flagged for deletion.
39+
|compass-short| asks for confirmation that you want to remove the document:
40+
41+
.. figure:: /images/compass/delete-doc-json2.png
42+
:figwidth: 720px
2743

2844
.. tab:: Table View
2945
:tabid: table-view
3046

31-
To delete a document, hover over the document and click the trash icon:
47+
To delete a document, hover over the document and click the
48+
:icon-fa5:`trash-alt` icon.
3249

3350
.. figure:: /images/compass/table-view-delete.png
34-
:figwidth: 696px
51+
:figwidth: 720px
3552

3653
After you click the delete button, the document is flagged for deletion.
3754
|compass-short| asks for confirmation that you want to remove the document:
3855

3956
.. figure:: /images/compass/delete-flag-table-view.png
40-
:figwidth: 696px
57+
:figwidth: 720px
4158

4259
Once you confirm, Compass deletes the document from the collection.
108 KB
Loading
93.5 KB
Loading
87.6 KB
Loading
91.5 KB
Loading

0 commit comments

Comments
 (0)