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 @@ -538,7 +538,8 @@ Sessions
538
538
.. code-block:: bash
539
539
540
540
var session = db.getMongo().startSession()
541
- var sessionId = session.getSessionId().id
541
+ var sessionId = session
542
+ sessionId // show the sessionId
542
543
543
544
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
544
545
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