Skip to content

Commit 9f3a72c

Browse files
p-mongoNobody
andauthored
Add CodeWithScope deprecation notice to documentation (#216)
Co-authored-by: Nobody <[email protected]>
1 parent a32d495 commit 9f3a72c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/tutorials/bson-v4.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,13 @@ Represents a string of JavaScript code.
392392
``BSON::CodeWithScope``
393393
```````````````````````
394394

395+
.. note::
396+
397+
The ``CodeWithScope`` type is deprecated as of MongoDB 4.2.1. Starting
398+
with MongoDB 4.4, support from ``CodeWithScope`` is being removed from
399+
various server commands and operators such as ``$where``. Please use
400+
other BSON types and operators when working with MongoDB 4.4 and newer.
401+
395402
Represents a string of JavaScript code with a hash of values.
396403

397404
.. code-block:: ruby

0 commit comments

Comments
 (0)