Skip to content

Commit 056cac8

Browse files
committed
shift content for info flow
1 parent 61acd47 commit 056cac8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/connect/mongoclient.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ Create a Client to Connect to MongoDB Atlas
8888
To connect to MongoDB, you must create a client. A client manages your
8989
connections and runs database commands.
9090

91+
You can create a client that uses your connection string and other client
92+
options by passing a ``ClientOptions`` object to the ``Connect()`` method.
93+
94+
To specify your connection URI, pass it to the ``ApplyURI()`` method, which
95+
returns a new ``ClientOptions`` instance. To set any other options, call the
96+
relevant helper method from the options package.
97+
9198
.. tip:: Reuse Your Client
9299

93100
We recommend that you reuse your client across sessions and operations. You
@@ -97,13 +104,6 @@ connections and runs database commands.
97104
about how connection pools work in the driver, see the
98105
:ref:`golang-connection-pools` guide.
99106

100-
You can create a client that uses your connection string and other client
101-
options by passing a ``ClientOptions`` object to the ``Connect()`` method.
102-
103-
To specify your connection URI, pass it to the ``ApplyURI()`` method, which
104-
returns a new ``ClientOptions`` instance. To set any other options, call the
105-
relevant helper method from the options package.
106-
107107
To learn more about connection options, see the :ref:`Connection Options
108108
<golang-connection-options>` section. To learn more about creating a client, see
109109
the API documentation for `Client <{+api+}/mongo#Client>`__ and `Connect()
@@ -119,7 +119,7 @@ Example
119119
~~~~~~~
120120

121121
The following code shows how you can create a client that uses an Atlas
122-
connection string and the {+stable-api+} version, connect to MongoDB, and verify
122+
connection string and the {+stable-api+} version, connects to MongoDB, and verifies
123123
that the connection is successful:
124124

125125
.. literalinclude:: /includes/fundamentals/code-snippets/srv.go

0 commit comments

Comments
 (0)