Hi there,
I’m struggling to figure out a way to update items within an array via the data-api. I’ve got an array (emailVerifyStatus) with 3 items in it and I want to search for all the items named ‘ready’ and change them to ‘uploading’.
"emailVerifyStatus": [
"ready",
"ready",
"ready"
]
I’m using the end point ‘/data/beta/action/updateMany’ with the following code that’s working without an array.
{
"dataSource":"Cluster0",
"database":"v2",
"collection":"allPersons",
"filter":{
"host":"hostName",
"emailVerifier.status":"ready"
},
"update":{
"$set":{
"emailVerifier.status":"uploading"
}
}
}
However this code is not working within an array. Do you have any Advice? Thank you.