[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:
Duplicate
duplicates SERVER-18500 Resolve ambiguity of positional proje... Backlog
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.

Generated at Thu Feb 08 03:52:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.