Skip to content

Commit 2d7c437

Browse files
committed
update references
1 parent 580a5d2 commit 2d7c437

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/fundamentals/transactions.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ guarantees that the data involved in your transaction operations remains
3838
consistent, even if the operations encounter unexpected errors.
3939

4040
When using the {+driver-short+}, you can create a new session from a
41-
``Client`` instance as a ``ClientSession``. We recommend that you reuse
41+
``MongoClient`` instance as a ``ClientSession``. We recommend that you reuse
4242
your client for multiple sessions and transactions instead of
4343
instantiating a new client each time.
4444

4545
.. warning::
4646

47-
Use a ``Session`` only with the ``Client`` (or associated
48-
``Database`` or ``Collection``) that created it. Using a
49-
``Session`` with a different ``Client`` results in operation
47+
Use a ``ClientSession`` only with the ``MongoClient`` (or associated
48+
``MongoDatabase`` or ``MongoCollection``) that created it. Using a
49+
``ClientSession`` with a different ``MongoClient`` results in operation
5050
errors.
5151

5252
Methods
@@ -81,7 +81,7 @@ following methods:
8181
error if there is no active transaction for the session or if the
8282
transaction was ended.
8383

84-
A ``Session`` also has methods to retrieve session properties and modify
84+
A ``ClientSession`` also has methods to retrieve session properties and modify
8585
mutable session properties. View the `API documentation <{+api+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-client-session/index.html>`__
8686
to learn more about these methods.
8787

0 commit comments

Comments
 (0)