File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ between applications and MongoDB instances in the official MongoDB
19
19
:driver:`Drivers </>`. For a list of drivers and links to
20
20
driver documentation, see :driver:`Drivers </>`.
21
21
22
- .. note::
23
-
24
- The MongoDB Atlas UI provides the connection strings for you
25
- when you :atlas:`connect to a database deployment
26
- </connect-to-database-deployment/>`. To register a new Atlas
27
- account, start at the :mdbacct:`MongoDB Atlas registration page
28
- </register?tck=docs_atlas>`.
29
-
30
22
Connection String Formats
31
23
-------------------------
32
24
@@ -130,6 +122,23 @@ Examples
130
122
131
123
.. include:: /includes/fact-pct-encode-uri.rst
132
124
125
+ - id: atlas
126
+ name: Atlas Deployment
127
+ content: |
128
+
129
+ .. note::
130
+
131
+ The MongoDB Atlas UI provides the connection strings for
132
+ you when you :atlas:`connect to a database deployment
133
+ </connect-to-database-deployment/>`. To register a new
134
+ Atlas account, start at the
135
+ :mdbacct:`MongoDB Atlas registration page
136
+ </register?tck=docs_atlas>`.
137
+
138
+ .. code-block:: bash
139
+
140
+ mongosh "mongodb+srv://cluster0.example.mongodb.net myFirstDatabase" --username JohnDoe
141
+
133
142
For more examples, see :ref:`connections-connection-examples`.
134
143
135
144
Components
You can’t perform that action at this time.
0 commit comments