[SERVER-23166] Updating deep nested array in embedded document error Created: 16/Mar/16  Updated: 16/Mar/16  Resolved: 16/Mar/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.3.3
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: shibimukesh Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File bug    
Issue Links:
Duplicate
duplicates SERVER-23147 Error updating deep nested array with... Closed
Operating System: ALL
Steps To Reproduce:

db.collection.update(

{ "country_id" : 1, "stateinfo.state_id" : 2, "stateinfo.cityinfo.city_id" : 4 }

,
{
$set :

{ "stateinfo.cityinfo.$.status" : 20 }


},
false,
true
)

Participants:

 Description   

We have a collection with country state city, while trying to update in deep nested array ie., city using positional operator it shows error using to many positional operator..
In order to make the update, I need to know the position of the city document out of the following cities. but this is not a proper way to update can u pls bring the solution for this


Generated at Thu Feb 08 04:02:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.