Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Query Execution
-
ALL
Description
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.
Attachments
Issue Links
- related to
-
SERVER-61234 JS object-based types are not properly auto-serialized when directly returned by server-side JS functions
-
- Closed
-