Skip to content

Commit 6aeb28e

Browse files
DOCSP-27021 add doc for tree explorer document context menu (#80)
* DOCSP-27021 add doc for tree explorer document context menu * Apply suggestions from code review Co-authored-by: jocelyn-mendez1 <[email protected]> --------- Co-authored-by: jocelyn-mendez1 <[email protected]>
1 parent 742804a commit 6aeb28e

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

source/databases-collections.txt

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ When you expand a collection's documents, |vsce| lists the ``_id`` of
5454
each document in the collection. Click an ``_id`` value to open that
5555
document in |vscode-short| and view its contents.
5656

57-
You may edit this single document:
57+
*To open a document in the collection*, you can also do the following:
58+
59+
1. Right-click the ID of the document that you want to open.
60+
2. Click :guilabel:`Open Document`.
61+
62+
*To edit this single document*:
5863

5964
.. include:: /includes/seq-edit-document.rst
6065

@@ -63,11 +68,41 @@ You may edit this single document:
6368
Users must have the :authaction:`listCollections` permission in
6469
order to view a collection's documents.
6570

66-
To view all of the collection's documents in an array, you can:
71+
*To view all of the collection's documents* in an array, you can:
6772

6873
1. Right-click a collection.
6974
2. Click :guilabel:`View Documents`.
7075

76+
*To copy a document in the collection*, you can:
77+
78+
1. Right-click the ID of the document you want to copy.
79+
2. Click :guilabel:`Copy Document`.
80+
81+
|vsce| copies the document to your clipboard.
82+
83+
*To clone a document in the collection*, you can:
84+
85+
1. Right-click the ID of the document you want to clone.
86+
#. Click :guilabel:`Clone Document`.
87+
88+
|vsce| opens the Playground where it displays the command to insert
89+
one new document in the collection.
90+
91+
#. Remove or replace the ``_id`` field and make any other changes to the
92+
cloned document.
93+
#. Click the :guilabel:`Play Button` in VS Code's top navigation bar to
94+
insert this document in the collection.
95+
#. Click :guilabel:`Yes` to confirm.
96+
97+
The :guilabel:`Playground Result` window displays the inserted ID of
98+
the new document.
99+
100+
*To remove a document from the collection*, you can:
101+
102+
1. Right-click the ID of the document you want to remove.
103+
2. Click :guilabel:`Delete Document`.
104+
3. Click :guilabel:`Yes` to confirm.
105+
71106
.. include:: /includes/admonitions/document-search-template.rst
72107

73108
Schema

0 commit comments

Comments
 (0)