Fetch data from two collections in Node Express MongoDB -- 2
₹600-1500 INR
In Progress
Posted over 3 years ago
₹600-1500 INR
Paid on delivery
I have one database in MongoDB in which I have two collections, the first is for videos, and the second is for video likes. I am fetching all videos where I want to fetch likes along with videos if any video has been liked by any user. By default in the videos model, I have put isLiked=false, but if any video has been liked, isLiked should be true. Also, I want to get the length of total likes on any video Id. That is only what I want