[DOCS-13861] JS objects like 'Set' do not work well in user-defined JS like $accumulator Created: 02/Sep/20 Updated: 30/Oct/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 1 year, 14 weeks, 2 days ago | ||||||||
| Epic Link: | DOCSP-11701 | ||||||||
| Description |
DescriptionPlease document the shortcoming described in SERVER-50614 to help users avoid this pitfall. As I'm filing this I realize there may be other JS types like "Map" that have a similar problem. It's probably worth testing that out as well. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Education Bot [ 31/Oct/22 ] |
|
Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you! |
| Comment by Jeffrey Allen [ 02/Sep/20 ] |
|
Thanks, will take a look. |
| Comment by Charlie Swanson [ 02/Sep/20 ] |
|
Not really, no. I know Set is an issue. I am worried about Map. I found this list of builtin objects. It's sort of a judgement call which are obvious, which are popular, and which are worth calling out. I think the general rule is that we transmit the data between JS and BSON, so if it has no corresponding BSON type, it likely won't work well. |
| Comment by Jeffrey Allen [ 02/Sep/20 ] |
|
Hey charlie.swanson, thanks for filing this. Do you have a list of JS types we should test / verify in addition to 'Set'? |