Skip to content

Commit 50ec289

Browse files
author
Dave Cuthbert
authored
DOCSP-28301-update-to-driver (#249)
* DOCSP-28301-update-to-driver * Staging fixes * Review Feedback
1 parent 20bdfde commit 50ec289

File tree

6 files changed

+23
-9
lines changed

6 files changed

+23
-9
lines changed

source/changelog.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ Compatibility Changes
3030
- ObjectId.prototype.get_inc
3131
- ObjectId.getInc
3232

33-
- Code objects store a string in their ``.code`` property. Code objects
34-
do not store JavaScript functions in their ``.code`` property.
35-
- If an object passes a key to a database function, ``mongosh`` only
36-
sends the object's own keys to the server. ``mongosh`` does not send
37-
inherited enumerable keys to the server.
33+
- .. include:: /includes/scripting/fact-code-objects.rst
34+
- .. include:: /includes/scripting/fact-enumerable-keys.rst
3835

3936
Updates in 1.8.0
4037
~~~~~~~~~~~~~~~~
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Code objects store a string in their ``.code`` property. Code objects do
2+
not store JavaScript functions in their ``.code`` property.
3+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
If an object passes a key to a database function, ``mongosh`` only sends
2+
the object's own keys to the server. ``mongosh`` does not send
3+
inherited enumerable keys to the server.
4+

source/reference/data-types.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ operation in ``mongosh``:
5252

5353
new ObjectId
5454

55+
Starting in 1.8.0, the ``ObjectId`` wrapper no longer accepts:
56+
57+
- ObjectId.prototype.generate
58+
- ObjectId.prototype.getInc
59+
- ObjectId.prototype.get_inc
60+
- ObjectId.getInc
61+
5562
.. seealso::
5663

5764
:method:`ObjectId`

source/write-scripts.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,4 +475,5 @@ you do not have to edit the script to run ``portableGetUserCount.js``.
475475
/write-scripts/require-external-modules
476476
/write-scripts/require-load-differences
477477
/write-scripts/scoping
478-
/write-scripts/limitations
478+
/write-scripts/considerations
479+
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.. _mongosh-script-limitations:
2+
.. _mongosh-script-considerations:
23

3-
==================
4-
Script Limitations
5-
==================
4+
=====================
5+
Script Considerations
6+
=====================
67

78
.. default-domain:: mongodb
89

@@ -13,3 +14,4 @@ Script Limitations
1314
:class: singlecol
1415

1516
.. include:: /includes/fact-call-limitations.rst
17+

0 commit comments

Comments
 (0)