@@ -117,33 +117,34 @@ Create a New Database
117117When you create a new database, you must populate it with an
118118initial collection.
119119
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
123121 database to exist.
124122
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.
130127
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.
132130
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.
134134
135135Create a New Collection
136136~~~~~~~~~~~~~~~~~~~~~~~
137137
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.
141139
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.
143143
144- #. In the prompt, enter a name for your new collection.
144+ #. Update the ``collection`` variable with your new collection name .
145145
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.
147148
148149Drop a Database or Collection
149150~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments