Posts by Caio Willian • 1 point
2 posts
-
0
votes1
answer133
viewsA: How to bring all the records of a certain son in mongodb?
After several attempts I managed to solve by myself, you can build the query using the $exists operator. db.collections.find({ "people": { $exists: true }}, {_id:0, "people.name": 1 })…
-
-3
votes1
answer133
viewsQ: How to bring all the records of a certain son in mongodb?
Commando: db.collection.find({"people.name"}) { "_id" : ObjectId("11111111111111111111111111"), "people" : { "name" : "Jose" } } { "_id" : ObjectId("222222222222222222222222222"), "people" : {…