How to update sub arrays in MongoDB
I recently needed to update specific values in sub arrays or nested arrays in MongoDB to lower case. At the end of my research and experiments I found a few variants of how to do it. I'll show you all of them using a shell to be language agnostic. Concepts are the same and it will be easy to write such queries in any language.