How to update elements of 2 arrays in the same document

@steevej Your answer helped me arrive at a final solution. I use your 2-filter technique to get an index to each array for $set, and one of the filters uses the $or operator to handle the 2 scenarios array1 can be in.

I will mark this as solved. Thank you!

1 Like