skip to Main Content

How to aggregate nested comments using mongodb – CentOS

I have one document for blogpost like this: { "_id": "5d8051cdf0b1017da7bff23c", "description": "<p>will update soon</p>", "topic": "How to setup Kafka Cluster on CentOS", "comments": [ { "created_at": "2019-10-12T02:13:01.859Z", "updated_at": "2019-10-12T02:13:01.859Z", "edited": false, "_id": "5da182aa013d12567e340a2d", "message": "test" "replies": [ { "created_at":…

VIEW QUESTION
Back To Top
Search