-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
ALL
MongoDB Enterprise > db.symbol.insert({_id: 1, sym: Symbol("foo")}) Error: unable to convert JavaScript property to mongo element sym : addToOperationsList@src/mongo/shell/bulk_api.js:606:28 Bulk/this.insert@src/mongo/shell/bulk_api.js:649:20 DBCollection.prototype.insert@src/mongo/shell/collection.js:317:9 @(shell):1:1
The shell wants to use ValueWriter to convert the JSON document (with its Symbol property) to BSON, but ValueWriter is missing a case for the Symbol object, which should be translated to a BSONType::Symbol.
- related to
-
SERVER-61234 JS object-based types are not properly auto-serialized when directly returned by server-side JS functions
- Closed