Updating/inserting elements in an sub-document array

Hi @vsr1 is this solution similar to mutateIn operations? Is it sub document operation or more similar to whole document operation? I try to find the optimum solution for fragment updates of large documents. Already asked the question regarding the exact issue here: Array Indexation consistency in sub document mutations

Also I have question how to remove element from the array in similar way to this update?