File tree Expand file tree Collapse file tree 6 files changed +23
-9
lines changed Expand file tree Collapse file tree 6 files changed +23
-9
lines changed Original file line number Diff line number Diff 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
3936Updates in 1.8.0
4037~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change 1+ Code objects store a string in their ``.code `` property. Code objects do
2+ not store JavaScript functions in their ``.code `` property.
3+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff 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`
Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments