Update array fields using update_by_query

Hi,
I have a field "tags" in all document.i want to update element "tag2" to "tag6" in all document which it contains.How can i achieve it ?
Example documents:
{
"id":"1",
"tags":["tag1","tag2","tag3"]
}

{
"id":"2",
"tags":["tag2","tag4","tag5"]
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.