[SERVER-19866] Allow more than one array in query when using $ operator Created: 11/Aug/15 Updated: 11/Aug/15 Resolved: 11/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 3.0.5 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andre Spiegel | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
The $ operator cannot be used in projections if there is more than one array field in the corresponding query. (http://docs.mongodb.org/manual/reference/operator/projection/positional/#array-field-limitations) This seems counter-intuitive since in the projection, the $ operator occurs in an array field name and so it should be unambiguous to which array it refers. I'd suggest therefore to remove this limitation and allow the $ operator even if there is more than one array field in the corresponding query. |
| Comments |
| Comment by J Rassi [ 11/Aug/15 ] |
|
Closing as a duplicate of SERVER-18500, which will permit this functionality. Andre, feel free to add a comment to SERVER-18500 if you think the description is missing anything covered here. |