3
Good people, this is my exit with the normal find:
{ 
    "_id" : ObjectId("57be6168ce98ad853a96282f"), 
    "nome" : "Mercado Padrão", 
    "userId" : "o4wQ2i4Dt7cAMNf9A", 
    "produtos" : [ 
         { 
             "nome" : "coca cola", 
             "vds" : [ 
                 { "desc" : "Sódio", "qtd" : "0,5", "vd" : "mg" } 
              ], 
              "est" : "100", "preco" : "5.50", "sku" : "KU177" 
         } 
     ] 
}
My question is how to make a query returning only the list of products of a specific userid.
for example: I want to view all userid products: o4wQ2i4Dt7cAMNf9A.
Without the "schema" of the bank gets a little complicated, but it is not the case of a simple find?
db.tabela.find({userId:'o4wQ2i4Dt7cAMNf9A'}). I started in Mongo a little while ago but until where I know it will return you all the records with theuserId == o4wQ2i4Dt7cAMNf9A– Neuber Oliveira