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

Mongodb – Nodejs localField $lookup as Array of _ids

i need to join two documents where in the first there a property as array of _ids and in the second documents to join db={ "tipo_pratica": [ { "_id": "618981a4c1b8b3bc67ff80b6", "descrizione": "anticipata", "modulo": [ "628015cd2fd9dfee86ac6820", "62801a4c2fd9dfee86ac6821", "6278f8d9d4aa4f4cef1a8266" ]}, { "_id":…

VIEW QUESTION
Back To Top
Search