File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,8 @@ Sessions
544
544
.. code-block:: bash
545
545
546
546
var session = db.getMongo().startSession()
547
- var sessionId = session.getSessionId().id
547
+ var sessionId = session
548
+ sessionId // show the sessionId
548
549
549
550
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
550
551
var refreshTimestamp = new Date() // take note of time at operation start
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
103
103
.. code-block:: javascript
104
104
105
105
var session = db.getMongo().startSession()
106
- var sessionId = session.getSessionId().id
106
+ var sessionId = session
107
+ sessionId // show the sessionId
107
108
108
109
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
109
110
var refreshTimestamp = new Date() // take note of time at operation start
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
51
51
.. code-block:: bash
52
52
53
53
var session = db.getMongo().startSession()
54
- var sessionId = session.getSessionId().id
54
+ var sessionId = session
55
+ sessionId // show the sessionId
55
56
56
57
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
57
58
var refreshTimestamp = new Date() // take note of time at operation start
You can’t perform that action at this time.
0 commit comments