@@ -205,27 +205,31 @@ in ``mongosh`` better align with the types used by the MongoDB Drivers.
205205Undefined Values
206206----------------
207207
208- The undefined BSON type is `deprecated <https://bsonspec.org/spec.html>`__ in
209- :binary:`bin.mongosh`. If you insert a document with the undefined JS type in
210- :binary:`bin. mongosh`, your deployment replaces the undefined value in your
208+ The undefined BSON type is `deprecated <https://bsonspec.org/spec.html>`__.
209+ If you try to insert a document with the undefined JS type in
210+ `` mongosh` `, your deployment replaces the undefined value in your
211211document with the BSON null value. There is no supported way of inserting undefined
212- values into your database using :binary:`bin. mongosh`.
212+ values into your database using `` mongosh` `.
213213
214214For example, consider running the following code to insert a document in
215- :binary:`bin. mongosh`:
215+ `` mongosh` `:
216216
217217.. code-block:: javascript
218218
219219 db.people.insertOne( { name : "Sally", age : undefined } )
220220
221- When you run this code in :binary:`bin. mongosh`, the shell inserts
221+ When you run this code in `` mongosh` `, the shell inserts
222222the following document:
223223
224224.. code-block:: javascript
225225 "copyable: false
226226
227227 { name : "Sally", age : null }
228228
229+ ``mongosh`` represents any BSON undefined values stored using other tools, such as
230+ the `Go Driver <https://www.mongodb.com/docs/drivers/go/current/>`__ or the
231+ legacy ``mongo`` shell, as null.
232+
229233Object Quoting Behavior
230234-----------------------
231235
0 commit comments