Skip to content

Commit 5f83efc

Browse files
committed
DOCSP-41784 update backport file and move tips to below code examples
1 parent ead861c commit 5f83efc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.backportrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// the branches available to backport to
66
"targetBranchChoices": [
77
"master",
8+
"v6.17",
9+
"v6.16",
10+
"v6.15",
811
"v6.14",
912
"v6.13",
1013
"v6.12",

source/connect/mongoclient.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ with behavior compatible with the specified API version.
108108
The following code shows how you can specify the connection string and the
109109
{+stable-api+} client option when connecting to a MongoDB deployment on Atlas and
110110
verify that the connection is successful:
111-
112-
.. include:: /includes/explicit-resource-management.rst
113111

114112
.. literalinclude:: /code-snippets/connection/stable-api-connect.js
115113
:language: javascript
@@ -121,6 +119,8 @@ verify that the connection is successful:
121119
Call the ``MongoClient.connect()`` method explicitly if you want to verify that the
122120
connection is successful.
123121

122+
.. include:: /includes/explicit-resource-management.rst
123+
124124
To learn more about the {+stable-api+} feature, see the :ref:`{+stable-api+} page
125125
<nodejs-stable-api>`.
126126

source/crud/transactions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ You must perform the following steps when using this API:
159159
The following code demonstrates how to perform a transaction by using
160160
the Core API:
161161

162-
.. include:: /includes/explicit-resource-management.rst
163-
164162
.. literalinclude:: /code-snippets/transactions/txn-api-examples.js
165163
:language: javascript
166164
:emphasize-lines: 2,4,10,16,20,24,26
@@ -183,6 +181,8 @@ the Core API:
183181
const session = client1.startSession();
184182
client2.db('myDB').collection('myColl').insertOne({ name: 'Jane Eyre' }, { session });
185183

184+
.. include:: /includes/explicit-resource-management.rst
185+
186186
To see a fully runnable example that uses this API, see the
187187
:ref:`node-usage-core-txn` usage example.
188188

0 commit comments

Comments
 (0)