[SERVER-2857] positional operator ($) avaliable in field selection Created: 29/Mar/11 Updated: 29/Mar/11 Resolved: 29/Mar/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Loïc Jeannin | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
document : {metas : [ {'name' : 'foo' , 'value' : 42}, {'name' : 'bar', 'value' : 55 }]} I'd like do be able to do .find( {'metas.name' : 'foo' }, {'metas.$' : 1}), so it only returns the matching sub-array in the field. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 29/Mar/11 ] |