Skip to content

Commit 7123cf7

Browse files
Getting Started to use drivers tabs
1 parent 8356fa3 commit 7123cf7

File tree

2 files changed

+10
-38
lines changed

2 files changed

+10
-38
lines changed

source/includes/steps-getting-started.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ title: "Download the connecting client."
6161
level: 3
6262
ref: download-shell-driver
6363
content: |
64-
.. tabs-gs::
64+
.. tabs-drivers::
6565
6666
tabs:
6767
- id: shell
68-
name: Mongo Shell
6968
content: |
7069
To download the :program:`mongo` Shell:
7170
@@ -82,14 +81,12 @@ content: |
8281
:ref:`Installation<tutorial-installation>`.
8382
8483
- id: compass
85-
name: Compass
8684
content: |
8785
Download MongoDB Compass from the
8886
`download center <https://www.mongodb.com/download-center?filter=enterprise#compass>`_
8987
and install it.
9088
9189
- id: python
92-
name: Python
9390
content: |
9491
Install the `PyMongo <https://api.mongodb.com/python/current/index.html>`_
9592
driver via ``pip``:
@@ -102,7 +99,6 @@ content: |
10299
For more information, see `Installing Pymongo <https://api.mongodb.com/python/current/installation.html>`_.
103100
104101
- id: nodejs
105-
name: Node.js
106102
content: |
107103
First create your project using ``npm init`` then install the
108104
:node-docs:`MongoDB Node.js Driver <>` via ``npm``:
@@ -137,11 +133,10 @@ ref: connect-cluster-shell
137133
content: |
138134
Using the **URI string** from the previous step, connect to the Atlas cluster:
139135
140-
.. tabs-gs::
136+
.. tabs-drivers::
141137
142138
tabs:
143139
- id: shell
144-
name: Mongo Shell
145140
content: |
146141
147142
.. class:: copyable-code
@@ -165,7 +160,6 @@ content: |
165160
"C:\Program Files\MongoDB\Server\3.6\bin\mongo.exe" "mongodb://user123:[email protected]:27017,gettingstarted-shard-00-01-hyjsm.mongodb.net:27017,gettingstarted-shard-00-02-hyjsm.mongodb.net:27017/test?ssl=true&replicaSet=GettingStarted-shard-0&authSource=admin"
166161
167162
- id: compass
168-
name: Compass
169163
content: |
170164
1. Launch MongoDB Compass with the URI from the previous step copied to the clipboard.
171165
2. A dialog box will prompt you to use the URI to fill out the connect form. Click :guilabel:`Yes`.
@@ -181,7 +175,6 @@ content: |
181175
5. Click :guilabel:`Connect`.
182176
183177
- id: python
184-
name: Python
185178
content: |
186179
187180
.. class:: copyable-code
@@ -195,7 +188,6 @@ content: |
195188
# Paste the following examples here
196189
197190
- id: nodejs
198-
name: Node.js
199191
content: |
200192
201193
.. class:: copyable-code

source/tutorial/getting-started.txt

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,30 @@ for provisioning, running, monitoring, and maintaining MongoDB deployments. It
1313
is a fast, easy, and free way to get started with MongoDB. To install and run
1414
MongoDB locally, see :ref:`Install MongoDB<tutorial-installation>`.
1515

16-
.. tabs-gs::
16+
.. tabs-drivers::
1717

1818
tabs:
1919
- id: shell
20-
name: Mongo Shell
2120
content: |
2221
The following tutorial uses
2322
:program:`mongo` shell to connect to an Atlas free-tier cluster, insert
2423
data, and perform query operations.
2524

2625
- id: compass
27-
name: Compass
2826
content: |
2927
`MongoDB Compass <https://docs.mongodb.com/compass/current/>`_ is the
3028
GUI for MongoDB. The following tutorial uses MongoDB Compass to connect
3129
to an Atlas free-tier cluster, insert data, and perform query
3230
operations.
3331

3432
- id: python
35-
name: Python
3633
content: |
3734
The following tutorial uses the
3835
`PyMongo <https://api.mongodb.com/python/current/index.html>`_ Python
3936
driver to connect to an Atlas free-tier cluster, insert data, and
4037
perform query operations.
4138

4239
- id: nodejs
43-
name: Node.js
4440
content: |
4541
The following tutorial uses the :node-docs:`MongoDB Node.js Driver <>`
4642
to connect to an Atlas free-tier cluster, then perform insert and query
@@ -62,11 +58,10 @@ MongoDB databases hold collections of documents.
6258
Insert Documents
6359
----------------
6460

65-
.. tabs-gs::
61+
.. tabs-drivers::
6662

6763
tabs:
6864
- id: shell
69-
name: Mongo Shell
7065
content: |
7166
:method:`db.collection.insertMany()` can insert *multiple*
7267
:ref:`documents <bson-document-format>` into a collection. Pass an
@@ -99,7 +94,6 @@ Insert Documents
9994
Use :method:`db.collection.insertOne()` to insert a single document.
10095

10196
- id: compass
102-
name: Compass
10397
content: |
10498
1. Click :guilabel:`Create Database`.
10599

@@ -159,7 +153,6 @@ Insert Documents
159153
size: { h: 10, w: 15.25, uom: "cm" }, tags: [ "blue" ] }
160154

161155
- id: python
162-
name: Python
163156
content: |
164157
:py:meth:`pymongo.collection.Collection.insert_many` can insert
165158
*multiple* :ref:`documents <bson-document-format>` into a collection.
@@ -193,7 +186,6 @@ Insert Documents
193186
single document.
194187

195188
- id: nodejs
196-
name: Node.js
197189
content: |
198190
:node-api:`Collection.insertMany() <Collection.html#insertMany>` can
199191
insert *multiple* :ref:`documents <bson-document-format>` into a
@@ -238,18 +230,16 @@ Query Documents
238230
Select All Documents
239231
~~~~~~~~~~~~~~~~~~~~
240232

241-
.. tabs-gs::
233+
.. tabs-drivers::
242234

243235
tabs:
244236
- id: shell
245-
name: Mongo Shell
246237
content: |
247238
To select all documents in the collection, pass an empty document as the
248239
:ref:`query filter document <document-query-filter>` to the
249240
:method:`db.collection.find()` method:
250241

251242
- id: compass
252-
name: Compass
253243
content: |
254244
Select the ``inventory`` collection from the :guilabel:`Collections`
255245
tab or the left-hand pane. By default, all documents are selected and
@@ -262,26 +252,23 @@ Select All Documents
262252
.. include:: /images/compass-find-all.rst
263253

264254
- id: python
265-
name: Python
266255
content: |
267256
To select all documents in the collection, pass an empty document as the
268257
:ref:`query filter document <document-query-filter>` to the
269258
:py:meth:`pymongo.collection.Collection.find` method:
270259

271260
- id: nodejs
272-
name: Node.js
273261
content: |
274262
To select all documents in the collection, pass an empty document as the
275263
:ref:`query filter document <document-query-filter>` to the
276264
:node-api:`Collection.find() <Collection.html#find>` method:
277265

278266
.. include:: /includes/driver-example-query-7.rst
279267

280-
.. tabs-gs::
268+
.. tabs-drivers::
281269

282270
tabs:
283271
- id: shell
284-
name: Mongo Shell
285272
content: |
286273
To query for documents that match specific equality conditions, pass the
287274
:method:`~db.collection.find()` method a :ref:`query filter document <document-query-filter>`
@@ -290,7 +277,6 @@ Select All Documents
290277
equals ``"D"``:
291278

292279
- id: compass
293-
name: Compass
294280
content: |
295281
To query for documents that match specific equality conditions, pass
296282
a :ref:`query filter document <document-query-filter>` to the
@@ -306,7 +292,6 @@ Select All Documents
306292
.. include:: /images/compass-find-filter.rst
307293

308294
- id: python
309-
name: Python
310295
content: |
311296
To query for documents that match specific equality conditions, pass the
312297
:py:meth:`~pymongo.collection.Collection.find` method a
@@ -316,7 +301,6 @@ Select All Documents
316301
``status`` equals ``"D"``:
317302

318303
- id: nodejs
319-
name: Node.js
320304
content: |
321305
To query for documents that match specific equality conditions, pass the
322306
:node-api:`find() <Collection.html#find>` method a
@@ -336,11 +320,10 @@ equals the document ``{ h: 14, w: 21, uom: "cm" }``:
336320

337321
.. include:: /includes/driver-example-query-15.rst
338322

339-
.. tabs-gs::
323+
.. tabs-drivers::
340324

341325
tabs:
342326
- id: compass
343-
name: Compass
344327
content: |
345328
.. class:: copyable-code
346329
.. code-block:: javascript
@@ -357,11 +340,10 @@ nested in the ``size`` field equals the string value ``"in"``:
357340

358341
.. include:: /includes/driver-example-query-17.rst
359342

360-
.. tabs-gs::
343+
.. tabs-drivers::
361344

362345
tabs:
363346
- id: compass
364-
name: Compass
365347
content: |
366348
.. class:: copyable-code
367349
.. code-block:: javascript
@@ -378,11 +360,10 @@ array that contains the string ``"red"`` as one of its elements:
378360

379361
.. include:: /includes/driver-example-query-23.rst
380362

381-
.. tabs-gs::
363+
.. tabs-drivers::
382364

383365
tabs:
384366
- id: compass
385-
name: Compass
386367
content: |
387368
.. class:: copyable-code
388369
.. code-block:: javascript
@@ -400,11 +381,10 @@ in the specified order:
400381

401382
.. include:: /includes/driver-example-query-21.rst
402383

403-
.. tabs-gs::
384+
.. tabs-drivers::
404385

405386
tabs:
406387
- id: compass
407-
name: Compass
408388
content: |
409389
.. class:: copyable-code
410390
.. code-block:: javascript

0 commit comments

Comments
 (0)