skip to Main Content

MongoDB – Filter array with array

I have one data example like this one in MongoDB. { id: 628a8683fc489c315b330ade, examName : 'Final Exam', schedule: { scheduleDate : '2021-10-18T17:00:00.000+00:00' scheduleName : 'Package Test' package:[ { exclude_question:[1,2], namePackage:testing packageId:628a89c2fc489c315b330b01 } ] }, question:[ { id:1, question:'hello can u…

VIEW QUESTION

nodejs mongodb aggregation not working properly

I have this type of MongoDB collection { "uploaded_video": [ { "_id": "622a03e66d59f72b72358069", "user_id": "Ec3FNhk45Lh1xk92cO9eoXDiWEk2", "uploaded_video": { "_id": "622a0616242e5b2e65e8b3b4", "video_description": "test", "created_At": "2022-03-10T14:05:29.000Z", "recordedVideo": false, "thumbnailCreated": true }, "activityType": "uploaded_video" } ], "comment_video": [ { "_id": "622a03e66d59f72b72358069", "user_id": "Ec3FNhk45Lh1xk92cO9eoXDiWEk2", "comment_video":…

VIEW QUESTION
Back To Top
Search