Hey sorry about that. the data is from some production env that I have and cant share all the fields.
From
{
"number": "CC850732",
"products": [
{
"product": {
"plan_group": "Old",
"price": 1999,
"type": "plan"
}
},
{
"product": {
"price": 1999,
"type": "other"
}
},
{
"product": {
"plan_group": "New",
"price": 1999,
"type": "plan"
}
}
],
"_id": {
"$oid": "61ac78f025a3421dbfff8496"
}
}
To
{
"number": "CC850732",
"products": [{
"product": {
"plan_group": ["Old"],
"price": 1999,
"type": "plan"
}
}, {
"product": {
"price": 1999,
"type": "other"
}
}, {
"product": {
"plan_group": ["New"],
"price": 1999,
"type": "plan"
}
}],
"_id": {
"$oid": "61ac78f025a3421dbfff8496"
}
}
The query that I wrote doesn’t update any document.