「update」という名前のjosnがあり、次のような埋め込みリスト「コメント」があります。
{
id: "update/0",
//comments contains elements with type:comment
comments: [{
id:"comment/0"
content:"old first level comment content..."
children:[{
id:"comment/00",
content:""old second level comment content...",
children[...]
}
]
}]
}
質問は次のとおりです。
1, How to replace "old first level comment content..." with "new first level
comment content..." by ids "update/0" and "comment/0"?
2, How to replace "old second level comment content..." with "new second level
comment content..." by ids "update/0","comment/0" and "comment/00"?