[SERVER-46243] Support ES6 Map object in MongoDB shell Created: 18/Feb/20 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Derek Scherger | Assignee: | Backlog - Server Tooling and Methods (STM) (Inactive) |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
$ mongo --version mongos> interpreterVersion() , , } |
||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Server Tooling & Methods
|
||||||||||||
| Sprint: | Service Arch 2020-04-06, Service arch 2020-04-20 | ||||||||||||
| Participants: | |||||||||||||
| Case: | (copied to CRM) | ||||||||||||
| Description |
|
Mongo 3.2 release notes point out the change to use spidermonkey https://docs.mongodb.com/manual/release-notes/3.2-javascript/ and link to the ES6 standard http://www.ecma-international.org/ecma-262/6.0/index.html However, it appears that the Map object does not work properly in MongoDB shell. The object returned from the constructor looks like a minimal map type of thing that doesn't conform to the ES6 standard.
|
| Comments |
| Comment by Robert Guo (Inactive) [ 06/Apr/21 ] |
|
Hi derek@echologic.com, this feature is available in our new MongoDB Shell (mongosh) (see installation instructions here). mongosh is still in beta but it should have most of the functionality you need. As we are preparing to GA it later this year, feel free to reach out if you have any questions or feedback. |
| Comment by Adrien JOLY [ 25/Feb/21 ] |
|
I'm having this issue too:
Similarly, I'm getting the following error when trying to access the `get()` method of a `Map`:
ReferenceError: friendlyEqual is not defined : |
| Comment by Eric Sedor [ 24/Feb/20 ] |
|
I'm passing along this request for consideration. Thanks again for this submission. Eric |
| Comment by Eric Sedor [ 21/Feb/20 ] |
|
Hi derek@echologic.com, thanks for your report. We'll take a look and get back to you if any questions come up. Gratefully, |