Skip to content

Commit bdf6994

Browse files
dacharycChris Cho
authored andcommitted
(DOCSP-32272): Atlas Top 250: Add Atlas to intro, provide Atlas-focused connection string (#806)
* Add Atlas to intro, provide Atlas-focused connection string * Incorporate review feedback * Correct errors in facet usage (cherry picked from commit 00e5cce) (cherry picked from commit c013393) (cherry picked from commit fc7be53)
1 parent 3862ccf commit bdf6994

File tree

13 files changed

+92
-12
lines changed

13 files changed

+92
-12
lines changed

source/compatibility.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Compatibility
55
=============
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
11+
.. meta::
12+
:keywords: node.js
13+
714
.. contents:: On this page
815
:local:
916
:backlinks: none

source/fundamentals/connection.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Connection
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: reference
12+
13+
.. meta::
14+
:keywords: node.js
15+
916
.. toctree::
1017

1118
/fundamentals/connection/connect

source/fundamentals/connection/connect.txt

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@
44
Connection Guide
55
================
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
11+
.. meta::
12+
:keywords: node.js
13+
714
.. contents:: On this page
815
:local:
916
:backlinks: none
1017
:depth: 2
1118
:class: singlecol
1219

13-
This guide shows you how to connect to a MongoDB instance or replica set
14-
using the Node.js driver.
20+
This guide shows you how to connect to a
21+
`MongoDB Atlas deployment <https://www.mongodb.com/docs/atlas>`__,
22+
a MongoDB instance, or a replica set using the Node.js driver.
1523

1624
Connection URI
1725
--------------
@@ -21,25 +29,27 @@ connect to a MongoDB deployment. It instructs the driver on how it should
2129
connect to MongoDB and how it should behave while connected. The following
2230
example shows each part of the connection URI:
2331

24-
.. figure:: /includes/figures/connection-string-parts.png
32+
.. figure:: /includes/figures/dns_seedlist_connection_string_parts.png
2533
:alt: Each part of the connection string
2634

27-
In this example, we use ``mongodb`` for the protocol, which specifies
28-
the :manual:`Standard Connection String Format </reference/connection-string/#std-label-connections-standard-connection-string-format>`.
29-
30-
If your instance or deployment has a DNS SRV record, you can use the
35+
In this example, we connect to an Atlas MongoDB deployment that has a
36+
DNS SRV record. For more details, see the
3137
:manual:`DNS Seed List Connection Format
32-
</reference/connection-string/#dns-seed-list-connection-format>` for
33-
your connection string. This format offers more flexibility of
34-
deployment and the ability to change the servers in rotation without
35-
reconfiguring clients.
38+
</reference/connection-string/#dns-seed-list-connection-format>`
39+
documentation. This format offers flexibility in deployment and the
40+
ability to change the servers in rotation without reconfiguring clients.
3641

3742
.. note::
3843

3944
To learn how to retrieve your connection string in Atlas, see the
4045
:atlas:`Atlas driver connection guide </driver-connection>`.
4146

42-
The next part of the connection string contains your credentials
47+
If you are connecting to an instance or replica set that does not have a
48+
DNS SRV address, you must use ``mongodb`` for the protocol, which specifies
49+
the :manual:`Standard Connection String Format
50+
</reference/connection-string/#std-label-connections-standard-connection-string-format>`.
51+
52+
After the protocol, the next part of the connection string contains credentials
4353
if you are using password-based authentication. Replace the value of ``user``
4454
with your username and ``pass`` with your password. If you are using an
4555
authentication mechanism that does not require a username and password, omit

source/fundamentals/crud.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ CRUD Operations
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: reference
12+
13+
.. meta::
14+
:keywords: node.js
15+
916
.. toctree::
1017
:caption: CRUD Operations
1118

source/fundamentals/crud/read-operations.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Read Operations
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
11+
.. meta::
12+
:keywords: code example, node.js, sample dataset
13+
714
- :doc:`/fundamentals/crud/read-operations/retrieve`
815
- :doc:`/fundamentals/crud/read-operations/cursor`
916
- :doc:`/fundamentals/crud/read-operations/distinct`
Binary file not shown.
Loading

source/quick-reference.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Quick Reference
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: reference
12+
13+
.. meta::
14+
:keywords: node.js
15+
916
This page shows the driver syntax for several MongoDB commands and links to
1017
their related reference and API documentation.
1118

source/quick-start.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Quick Start
55
===========
66

7+
.. facet::
8+
:name: genre
9+
:values: tutorial
10+
11+
.. meta::
12+
:keywords: node.js
13+
714
.. contents:: On this page
815
:local:
916
:backlinks: none

source/usage-examples.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Usage Examples
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: reference
12+
13+
.. meta::
14+
:keywords: node.js
15+
916
.. contents:: On this page
1017
:local:
1118
:backlinks: none

source/usage-examples/find.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Find Multiple Documents
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: reference
12+
13+
.. meta::
14+
:keywords: code example, node.js, sample dataset
15+
916
You can query for multiple documents in a collection with
1017
``collection.find()``. The ``find()`` method uses a query document that you
1118
provide to match the subset of the documents in the collection that match the

source/usage-examples/findOne.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Find a Document
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: tutorial
12+
13+
.. meta::
14+
:keywords: code example, node.js, sample dataset
15+
916
You can query for a single document in a collection with the
1017
``collection.findOne()`` method. The ``findOne()`` method uses a query
1118
document that you provide to match only the subset of the documents in the

source/usage-examples/insertOne.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Insert a Document
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: tutorial
12+
13+
.. meta::
14+
:keywords: code example, node.js, sample dataset
15+
916
You can insert a document into a collection using the
1017
`collection.insertOne() <{+api+}/classes/Collection.html#insertOne>`__ method. To
1118
insert a document, define an object that contains the fields and values that

0 commit comments

Comments
 (0)