Mongodb – Need to get for each document some info from all containing collections
Collection House: { "_id": ObjectId('0001'), "fruit": "apple", "entries": [ DBRef('room', ObjectId('1234')), DBRef('room', ObjectId('5678')) ] } Collection rooms: { "_id": ObjectId('1234'), "some": "data" } I now want all the rooms normal output (simple find) BUT enriched with a fruit array containing…