I have data like this
{
"_id":1,
"v_name":"Hair Patch in Delhi",
"v_url":"https://www.testurlvideo.com",
"v_comments":[
{
"user":"Kush Khurana",
"comment":"Awesome Video"
},
{
"user":"Nikhil",
"comment":"Keep up the good videos"
},
{
"user":"Kush Khurana",
"comment":"Very good and Awesome Video"
}
]
}
But I want the data like this below
{
"_id":1,
"v_comments":[
{
"user":"Nikhil",
"comment":"Keep up the good videos"
}
]
}
What query I need in MongoDB?