Skip to content

Commit 42ceb08

Browse files
authored
DOCSP-11167: [VSCODE] Display indexes and index keys in tree view (#20)
1 parent f266727 commit 42ceb08

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

source/databases-collections.txt

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use the left navigation to:
2424
- Drop databases and collections.
2525

2626
.. figure:: /images/dbs-colls-docs.png
27-
:figwidth: 300px
27+
:figwidth: 270px
2828
:alt: Image showing deployment navigation
2929

3030
.. note::
@@ -40,7 +40,7 @@ deployment. Click a database to view the collections it contains.
4040
View Collection Documents and Schema
4141
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4242

43-
Click a collection to view its documents and schema.
43+
Click a collection to view its documents, schema, and indexes.
4444

4545
Documents
4646
``````````
@@ -58,7 +58,9 @@ Alternatively, right-click a collection and click
5858
in an array.
5959

6060
Opening collection documents provides a **read-only** view of your data.
61-
To modify your data using |vsce|, use a JavaScript Playground.
61+
To modify your data using |vsce|, use a :ref:`JavaScript Playground
62+
<vsce-crud>` or launch a shell by right-clicking your active deployment
63+
in the MongoDB view in the Activity Bar.
6264

6365
Schema
6466
``````
@@ -75,6 +77,24 @@ appear in that collection's documents. If a field exists in all
7577
documents and its type is consistent throughout the collection, |vsce|
7678
displays an icon indicating that field's data type.
7779

80+
Indexes
81+
```````
82+
83+
Your collections's indexes are listed under the :guilabel:`Indexes` heading.
84+
When you expand an index, each index key appears with an icon designating
85+
its type. Index key types include:
86+
87+
- Ascending
88+
- Descending
89+
- Geospatial (2d, 2dsphere, geoHaystack)
90+
- Text
91+
- Hashed
92+
93+
.. seealso::
94+
95+
For more information about MongoDB indexes, see the documentation in
96+
the :manual:`server manual </indexes>`.
97+
7898
Create a New Database
7999
~~~~~~~~~~~~~~~~~~~~~
80100

source/images/dbs-colls-docs.png

-21.2 KB
Loading

source/images/vsce-landing-2.png

-3.53 MB
Loading

0 commit comments

Comments
 (0)