Posts by Michael Lelyakin • 101 points
1 post
-
0
votes1
answer177
viewsA: Aggregate array of two or more collections in mongodb
Hello, I recommend you do the unwind "medico" array first and then join the other collection: Clinicas.aggregate([ { $unwind: "$medico", }, { $lookup: { localField: "medico.medicoId.nome",…