-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: JavaScript, Shell
-
None
-
Fully Compatible
This snippet shows how an "Undefined" (0x06) BSON value may get stored into the database.
use tempDB;
var obj = {};
db.tempColl.insert(
);
db.tempColl.find(
); // expects one document but actually returns zero documents.
db.tempColl.find({ data: { $type: 10 }}); // expects one document but actually returns zero documents.
db.tempColl.find({ data: { $type: 6 }}); // expects zero documents but returns one document.
- is duplicated by
-
SERVER-14221 Distinct doesn't properly handle undefined literal
-
- Closed
-
- is related to
-
SERVER-19503 Javascript object serialization process should skip properties with undefined values
-
- Closed
-
- related to
-
SERVER-6102 Shell displays both 'undefined' and 'null' type as 'null'
-
- Closed
-