From 03343f5364e7268ab222538385e15be489eec6f5 Mon Sep 17 00:00:00 2001 From: corryroot Date: Thu, 26 Aug 2021 13:08:40 -0400 Subject: [PATCH 1/4] (DOCSP-17931): Added Atlas connection string note. --- source/reference/connection-string.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/reference/connection-string.txt b/source/reference/connection-string.txt index 15e27b90a10..c43b648c214 100644 --- a/source/reference/connection-string.txt +++ b/source/reference/connection-string.txt @@ -19,6 +19,14 @@ between applications and MongoDB instances in the official MongoDB :driver:`Drivers `. For a list of drivers and links to driver documentation, see :driver:`Drivers `. +.. note:: + + The MongoDB Atlas UI provides the connection strings for you + when you :atlas:`connect to a database deployment + `. To register a new Atlas + account, start at the :mdbacct:`MongoDB Atlas registration page + `. + Connection String Formats ------------------------- From 99a7567bf17b82f585bf880c1aec7d10059c07c6 Mon Sep 17 00:00:00 2001 From: corryroot Date: Thu, 26 Aug 2021 14:18:35 -0400 Subject: [PATCH 2/4] (DOCSP-17931): Incorporated Jeff's feedback. --- source/reference/connection-string.txt | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/source/reference/connection-string.txt b/source/reference/connection-string.txt index c43b648c214..dfb1097d0d6 100644 --- a/source/reference/connection-string.txt +++ b/source/reference/connection-string.txt @@ -19,14 +19,6 @@ between applications and MongoDB instances in the official MongoDB :driver:`Drivers `. For a list of drivers and links to driver documentation, see :driver:`Drivers `. -.. note:: - - The MongoDB Atlas UI provides the connection strings for you - when you :atlas:`connect to a database deployment - `. To register a new Atlas - account, start at the :mdbacct:`MongoDB Atlas registration page - `. - Connection String Formats ------------------------- @@ -130,6 +122,23 @@ Examples .. include:: /includes/fact-pct-encode-uri.rst + - id: atlas + name: Atlas Deployment + content: | + + .. note:: + + The MongoDB Atlas UI provides the connection strings for + you when you :atlas:`connect to a database deployment + `. To register a new + Atlas account, start at the + :mdbacct:`MongoDB Atlas registration page + `. + + .. code-block:: bash + + mongosh "mongodb+srv://cluster0.example.mongodb.net myFirstDatabase" --username JohnDoe + For more examples, see :ref:`connections-connection-examples`. Components From 2b5958958f55ebe5bb1ba274e75d482373e0e4b6 Mon Sep 17 00:00:00 2001 From: corryroot Date: Thu, 26 Aug 2021 15:33:54 -0400 Subject: [PATCH 3/4] (DOCSP-17931): Incorporated Jeff's feedback. --- source/reference/connection-string.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/source/reference/connection-string.txt b/source/reference/connection-string.txt index dfb1097d0d6..5cc7f1eb024 100644 --- a/source/reference/connection-string.txt +++ b/source/reference/connection-string.txt @@ -126,14 +126,15 @@ Examples name: Atlas Deployment content: | - .. note:: - - The MongoDB Atlas UI provides the connection strings for - you when you :atlas:`connect to a database deployment - `. To register a new - Atlas account, start at the - :mdbacct:`MongoDB Atlas registration page - `. + MongoDB Atlas provides the connection strings for + your deployment when you click the :atlas:`Connect + ` button in the Atlas UI. + To register a new Atlas account, start at the + :mdbacct:`MongoDB Atlas registration page + `. + + Your Atlas connection string might resemble the following + example: .. code-block:: bash From dd9cc8666a53d8fa16e5b132effebcb0618bbf14 Mon Sep 17 00:00:00 2001 From: corryroot Date: Thu, 26 Aug 2021 16:04:20 -0400 Subject: [PATCH 4/4] (DOCSP-17931): Incorporated JD's feedback. --- source/reference/connection-string.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/reference/connection-string.txt b/source/reference/connection-string.txt index 5cc7f1eb024..a1952d08277 100644 --- a/source/reference/connection-string.txt +++ b/source/reference/connection-string.txt @@ -131,7 +131,8 @@ Examples ` button in the Atlas UI. To register a new Atlas account, start at the :mdbacct:`MongoDB Atlas registration page - `. + `. To learn more, see + :atlas:`Get Started with Atlas `. Your Atlas connection string might resemble the following example: