[SERVER-5299] array element selection syntax returns wrong result Created: 13/Mar/12 Updated: 15/Feb/13 Resolved: 26/Nov/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Pasette (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Tried the following:
Result is an empty array:
Is that supposed to work, or are we just not detecting the unsupported syntax? Since it has to be quoted anyway, it would be nicer if this worked:
|
| Comments |
| Comment by Chris Westin [ 13/Mar/12 ] |
|
Also: if this is supposed to work, I couldn't find any reference to it in our docs. All I could find was doc for $slice: http://www.mongodb.org/display/DOCS/Retrieving+a+Subset+of+Fields#RetrievingaSubsetofFields-RetrievingaSubrangeofArrayElements . |