[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:
Duplicate
duplicates SERVER-831 Positional Operator Matching Nested A... Closed
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,...}

} )
Each item in array query solve in order the $ operator



 Comments   
Comment by Thomas Rueckstiess [ 20/Jun/14 ]

Hi Paolo,

This request has been made previously, see SERVER-831. I'm closing this ticket as duplicate. Feel free to watch and comment on the already existing one.

Regards,
Thomas

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