Update String inside object inside array mongodb
I have a document that looks something like this { "_id":{ "$oid":"id" }, "side1":[ { "username":"test1", "id":"id1", }, { "username":"test2", "id":"id2", }, { "username":"test3", "id":"id3", } ], "side2":[ { "username":"test4", "id":"id4", }, { "username":"test5", "id":"id5", }, { "username":"test6", "id":"id6", }…