Skip to content

Commit 13071dc

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-23619 cursor example updates (BACKPORT) (#2830)
* DOCSP-24951 regex updates (#1771) * DOCSP-24951-regex-updates * DOCSP-24951-regex-updates * DOCSP-24951-regex-updates * DOCSP-24951-regex-updates Co-authored-by: jason-price-mongodb <[email protected]> * DOCSP-24951 regex updates * DOCSP-23619 cursor example updates (#2810) * DOCSP-23619-cursor-example-updates * DOCSP-23619-cursor-example-updates * DOCSP-23619-cursor-example-updates * DOCSP-23619-cursor-example-updates * DOCSP-23619-cursor-example-updates --------- Co-authored-by: jason-price-mongodb <[email protected]> --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 0e452bf commit 13071dc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

source/reference/limits.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ Sessions
451451
.. code-block:: shell
452452

453453
var session = db.getMongo().startSession()
454-
var sessionId = session.getSessionId().id
454+
var sessionId = session
455+
sessionId // show the sessionId
455456

456457
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
457458
var refreshTimestamp = new Date() // take note of time at operation start

source/reference/method/cursor.maxTimeMS.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
9898
.. code-block:: javascript
9999

100100
var session = db.getMongo().startSession()
101-
var sessionId = session.getSessionId().id
101+
var sessionId = session
102+
sessionId // show the sessionId
102103

103104
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
104105
var refreshTimestamp = new Date() // take note of time at operation start

source/reference/method/cursor.noCursorTimeout.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
5151
.. code-block:: shell
5252

5353
var session = db.getMongo().startSession()
54-
var sessionId = session.getSessionId().id
54+
var sessionId = session
55+
sessionId // show the sessionId
5556

5657
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
5758
var refreshTimestamp = new Date() // take note of time at operation start

0 commit comments

Comments
 (0)