Skip to content

Commit

Permalink
Add Atlas to intro, provide Atlas-focused connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
dacharyc committed Sep 19, 2023
1 parent 41510b5 commit d85ae98
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions source/fundamentals/connection/connect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Connection Guide
:depth: 2
:class: singlecol

This guide shows you how to connect to a MongoDB instance or replica set
using the Node.js driver.
This guide shows you how to connect to a MongoDB Atlas instance,
another MongoDB instance, or a replica set using the Node.js driver.

.. _node-connection-uri:

Expand All @@ -30,25 +30,25 @@ connect to a MongoDB deployment. It instructs the driver on how it should
connect to MongoDB and how it should behave while connected. The following
example shows each part of the connection URI:

.. figure:: /includes/figures/connection-string-parts.png
.. figure:: /includes/figures/dns_seedlist_connection_string_parts.png
:alt: Each part of the connection string

In this example, we use ``mongodb`` for the protocol, which specifies
the :manual:`Standard Connection String Format </reference/connection-string/#std-label-connections-standard-connection-string-format>`.

If your instance or deployment has a DNS SRV record, you can use the
In this example, we connect to an Atlas MongoDB deployment that has a
DNS SRV record. For more details, refer to the

Check failure on line 37 in source/fundamentals/connection/connect.txt

View workflow job for this annotation

GitHub Actions / TDBX Vale rules

[vale] reported by reviewdog 🐶 [MongoDB.ConciseTerms] 'see' is preferred over 'refer to'. Raw Output: {"message": "[MongoDB.ConciseTerms] 'see' is preferred over 'refer to'.", "location": {"path": "source/fundamentals/connection/connect.txt", "range": {"start": {"line": 37, "column": 35}}}, "severity": "ERROR"}
:manual:`DNS Seed List Connection Format
</reference/connection-string/#dns-seed-list-connection-format>` for
your connection string. This format offers more flexibility of
deployment and the ability to change the servers in rotation without
reconfiguring clients.
</reference/connection-string/#dns-seed-list-connection-format>`
documentation. This format offers flexibility in deployment and the
ability to change the servers in rotation without reconfiguring clients.

.. note::

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

The next part of the connection string contains your credentials
Alternately, you could use ``mongodb`` for the protocol, which specifies
the :manual:`Standard Connection String Format </reference/connection-string/#std-label-connections-standard-connection-string-format>`.

After the protocol, the next part of the connection string contains credentials
if you are using password-based authentication. Replace the value of ``user``
with your username and ``pass`` with your password. If you are using an
authentication mechanism that does not require a username and password, omit
Expand Down
Binary file removed source/includes/figures/connection-string-parts.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d85ae98

Please sign in to comment.