@@ -17,7 +17,7 @@ Navigate Your Data
17
17
Once you :ref:`connect to your deployment <vsce-connect>` using |vsce|,
18
18
use the left navigation to:
19
19
20
- - Explore your databases, collections, read-only views, and documents.
20
+ - Explore your databases, collections, read-only views, and documents.
21
21
22
22
- Create new databases and collections.
23
23
@@ -31,40 +31,39 @@ use the left navigation to:
31
31
32
32
.. include:: /includes/fact-required-roles.rst
33
33
34
- Databases and Collections
35
- -------------------------
34
+ View Databases and Collections
35
+ ------------------------------
36
36
37
- When you expand an active connection, |vsce| shows the databases in that
38
- deployment. Click a database to view the collections it contains .
37
+ When you expand an active connection, |vsce| shows the databases in
38
+ that deployment .
39
39
40
- Click a collection to view its documents, schema, and indexes.
40
+ - Click the name of a database to view the collections it contains.
41
+ - Click the name of a collection to view its documents, schema, and
42
+ indexes.
43
+
44
+ .. include:: /includes/admonitions/close-all-docs-on-exit.rst
41
45
42
46
View Collection Documents and Schema
43
47
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
48
49
+ When you expand a collection, |vsce| displays the number of documents
50
+ next to the :guilabel:Documents label in the navigation panel.
51
+
45
52
Documents
46
53
``````````
47
54
48
- When you expand a collection, |vsce| displays that collection's
49
- document count next to the :guilabel:`Documents` label in the
50
- navigation panel.
51
-
52
55
When you expand a collection's documents, |vsce| lists the ``_id`` of
53
56
each document in the collection. Click an ``_id`` value to open that
54
- document in VS Code and view its contents.
57
+ document in |vscode-short| and view its contents.
55
58
56
- .. note: :
59
+ You may edit this single document :
57
60
58
- You cannot open a single document within a read-only view.
61
+ .. include:: /includes/seq-edit-document.rst
59
62
60
- Alternatively, right-click a collection and click
61
- :guilabel:`View Documents` to view all of the collection's documents
62
- in an array.
63
+ To view all of the collection's documents in an array, you can:
63
64
64
- Opening collection documents provides a **read-only** view of your data.
65
- To modify your data using |vsce|, use a :ref:`JavaScript Playground
66
- <vsce-crud>` or launch a shell by right-clicking your active deployment
67
- in the MongoDB view in the Activity Bar.
65
+ 1. Right-click a collection.
66
+ 2. Click :guilabel:`View Documents`.
68
67
69
68
.. include:: /includes/admonitions/document-search-template.rst
70
69
@@ -87,8 +86,8 @@ field name for a text description of the field's data type.
87
86
Manage Indexes
88
87
~~~~~~~~~~~~~~
89
88
90
- Your collections's indexes are listed under the :guilabel:`Indexes`
91
- heading. When you expand an index, each index key appears with an icon
89
+ Your collections's indexes are listed under the :guilabel:`Indexes`
90
+ heading. When you expand an index, each index key appears with an icon
92
91
designating its type. Index key types include:
93
92
94
93
- Ascending
@@ -99,15 +98,15 @@ designating its type. Index key types include:
99
98
100
99
.. note::
101
100
102
- You can open a :ref:`MongoDB Playground <vsce-crud>`
103
- pre-configured to create an index by hovering over the
104
- :guilabel:`Indexes` label in the navigation panel and clicking the
105
- :icon-fa4:`plus` icon that appears.
101
+ You can open a :ref:`MongoDB Playground <vsce-crud>` pre-configured
102
+ to create an index by hovering over the :guilabel:`Indexes` label
103
+ in the navigation panel and clicking the :icon-fa4:`plus` icon that
104
+ appears.
106
105
107
106
.. seealso::
108
107
109
- For more information about MongoDB indexes, see the documentation in
110
- the :manual:`server manual </indexes>`.
108
+ To learn more about MongoDB indexes, see the
109
+ :manual:`server manual </indexes>`.
111
110
112
111
Create a New Database
113
112
~~~~~~~~~~~~~~~~~~~~~
0 commit comments