@@ -117,33 +117,34 @@ Create a New Database
117
117
When you create a new database, you must populate it with an
118
118
initial collection.
119
119
120
- To create a new database:
121
-
122
- 1. Hover over the connection for the deployment where you want your
120
+ #. Hover over the connection for the deployment where you want your
123
121
database to exist.
124
122
125
- #. Click the :icon-fa5:`plus` icon that appears.
126
-
127
- #. In the prompt, enter a name for your new database.
128
-
129
- #. Press the enter key.
123
+ #. Click the :icon-fa5:`plus` icon or right-click and select
124
+ :guilabel:`Add Database`. |vsce| opens a new tab with ``const``
125
+ variables for database and
126
+ collection names.
130
127
131
- #. Enter a name for the first collection in your new database.
128
+ #. Update the ``database`` and ``collection`` variables with
129
+ the names for your database and collection.
132
130
133
- #. Press the enter key.
131
+ #. Click the :icon-fa5:`play` button located at the top right of the
132
+ tab to execute the script. If the database and collection do not
133
+ already exist, they are created.
134
134
135
135
Create a New Collection
136
136
~~~~~~~~~~~~~~~~~~~~~~~
137
137
138
- To create a new collection:
139
-
140
- 1. Hover over the database where you want your collection to exist.
138
+ #. Hover over the database name where you want your collection to exist.
141
139
142
- #. Click the :guilabel:`Plus` icon that appears.
140
+ #. Right-click the database name and select :guilabel:`Add Collection`.
141
+ |vsce| opens a new tab with ``const`` variables for database and
142
+ collection names.
143
143
144
- #. In the prompt, enter a name for your new collection.
144
+ #. Update the ``collection`` variable with your new collection name .
145
145
146
- #. Press the enter key to confirm your new collection.
146
+ #. Click the :icon-fa5:`play` button located at the top right of the
147
+ tab to execute the script. The collection is created in the specified database.
147
148
148
149
Drop a Database or Collection
149
150
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments