Let's have following simplified construct. For example some family-tree-like-structure. For simplicity, it is guaranteed all names are unique.:
{
_id: "abc",
name: "Alan",
children: [
{name: "Sophia", children: []},
{name: "Bruno", children: [
{name: "Ivan", children: [
{name: "Maya", children: []}
]}
]}
]
}
When I need to change name of "Ivan" to "Igor" and I only know the top document's id (_id = "abc"), while I don't know, how nested Ivan exactly is, is it still posible to make the update without loading entire document (in my case of size of megabytes) to client application, modification of entire object and replacing entire object back to mongoDb?
Thanks for any advice.