I have a collection which elements can be simplified to this:
{tags : [1, 5, 8]}
where there would be at least one element in array and all of t
In case you need replace one value in an array to another check this answer:
Replace array value using arrayFilters