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
30
30
- ObjectId.prototype.get_inc
31
31
- ObjectId.getInc
32
32
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
38
35
39
36
Updates in 1.8.0
40
37
~~~~~~~~~~~~~~~~
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``:
52
52
53
53
new ObjectId
54
54
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
+
55
62
.. seealso::
56
63
57
64
: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``.
475
475
/write-scripts/require-external-modules
476
476
/write-scripts/require-load-differences
477
477
/write-scripts/scoping
478
- /write-scripts/limitations
478
+ /write-scripts/considerations
479
+
Original file line number Diff line number Diff line change 1
1
.. _mongosh-script-limitations:
2
+ .. _mongosh-script-considerations:
2
3
3
- ==================
4
- Script Limitations
5
- ==================
4
+ =====================
5
+ Script Considerations
6
+ =====================
6
7
7
8
.. default-domain:: mongodb
8
9
@@ -13,3 +14,4 @@ Script Limitations
13
14
:class: singlecol
14
15
15
16
.. include:: /includes/fact-call-limitations.rst
17
+
You can’t perform that action at this time.
0 commit comments