Posts by Thiago Gomes • 1 point
1 post
-
0
votes2
answers1223
viewsA: Mongo find em array dentro de Collection
Use Aggregate and $match Amigo. To organize your filter, use $project: db.XXXXX.aggregate([{ $match: { userId: "o4wQ2i4Dt7cAMNf9A"} },{ $project:{ userId: 1, produtos.nome: 1} }])…