File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ guarantees that the data involved in your transaction operations remains
38
38
consistent, even if the operations encounter unexpected errors.
39
39
40
40
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
42
42
your client for multiple sessions and transactions instead of
43
43
instantiating a new client each time.
44
44
45
45
.. warning::
46
46
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
50
50
errors.
51
51
52
52
Methods
@@ -81,7 +81,7 @@ following methods:
81
81
error if there is no active transaction for the session or if the
82
82
transaction was ended.
83
83
84
- A ``Session `` also has methods to retrieve session properties and modify
84
+ A ``ClientSession `` also has methods to retrieve session properties and modify
85
85
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>`__
86
86
to learn more about these methods.
87
87
You can’t perform that action at this time.
0 commit comments