Get all record from collection , if match at least one record in second collection on MongoDB
I have two collection. User and Course User Collection [{ "_id": "11111", "name": "john", }, { "_id": "11112", "name": "smith", }] Course Collection [{ "_id": "00011", "user_id": "11111", "location_id": "9999", }, { "_id": "00012", "user_id": "11111", "location_id": "8888", }, {…