[SERVER-13929] Multi $(update) use or update in aggregation pipeline Created: 13/May/14 Updated: 10/Dec/14 Resolved: 20/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Paolo Pino | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
Why the positional $ operator cannot be used for queries which traverse more than one array? A possible solution is to pass to the update method an array of quey to solve $ operator. db.collection.update( { <array>: value ... }, { <update operator>: { "<array>.$....$" : value }},{ query_array: { query1,query2,...} } ) |
| Comments |
| Comment by Thomas Rueckstiess [ 20/Jun/14 ] |
|
Hi Paolo, This request has been made previously, see Regards, |