-3
Commando: db.collection.find({"people.name"})
{
"_id" : ObjectId("11111111111111111111111111"),
"people" : {
"name" : "Jose"
}
}
{
"_id" : ObjectId("222222222222222222222222222"),
"people" : {
"name" : "Willian"
}
}
{
"_id" : ObjectId("333333333333333333333333333"),
"people" : {
"name" : "Ana"
}
}
Exit:
{
"name" : "Jose"
}
{
"name" : "Willian"
}
{
"name" : "Ana"
}
You can translate to Portuguese from Brazil, after all here is for Brazilians to post their doubts
– novic
How to bring all the records of a certain son in mongodb?
– Caio Willian
If you can edit your question and put it all in English, fine?
– novic
OK I’ll rephrase the question
– Caio Willian