I saw a lot of similar questions about this but couldn't make it work in my collection.
How can I delete a specific comment (you can assume that I know the userId).
For example, I want to remove comment with commentId=3 and I know that it's under userId=1.
[
{
userId: "1",
posts: [
{
postId: "2",
comments: [
{
commentId: "3",
...
},
...
]
},
...
]
},
...
]
Thanks!