[SERVER-997] It is possible to create a field named '$' with the update command. Created: 11/Apr/10 Updated: 09/Apr/14 Resolved: 09/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.4.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Loïc Faure-Lacroix | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu Server 9.04 |
||
| Participants: |
| Description |
|
It is possible to created a field named '$' with the update command. let: , {$push: {'children.$.$.children': {label: 'New new sub menu', children: []}}}) where all 'childen' fields are arrays. Expected result: Actual Result: ] On an added note: |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 09/Apr/14 ] | |||||
|
This is no longer an issue in 2.6 as you will get an error trying to do an update with more than one "$":
| |||||
| Comment by Dwight Merriman [ 12/Jul/11 ] | |||||
|
currently $ is a reserved character |