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 @@ -515,7 +515,8 @@ Sessions
515
515
.. code-block:: bash
516
516
517
517
var session = db.getMongo().startSession()
518
- var sessionId = session.getSessionId().id
518
+ var sessionId = session
519
+ sessionId // show the sessionId
519
520
520
521
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
521
522
var refreshTimestamp = new Date() // take note of time at operation start
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
98
98
.. code-block:: javascript
99
99
100
100
var session = db.getMongo().startSession()
101
- var sessionId = session.getSessionId().id
101
+ var sessionId = session
102
+ sessionId // show the sessionId
102
103
103
104
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
104
105
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