Hi i´m completely newbie with mongodb, i come from SQL Server, i have the following doubt If a have the structure bellow:
Collection: tv
"_id": ObjectId("123456abc"),
"brand": "Sony",
"model": "Bravia",
"price": 1000
Collection: tvcomments
"_id": "_id": ObjectId("456789def"),
"tv": ObjectId("123456abc"),
"comments": [
{
"user": ObjectId("413212eop"),
"text": "Very nice TV"
}
]
I´d like to get tv with their comments, but i don´t find a example to do this, maybe is not possible?
db.tvcomments.find({tv:object_id_of_tv_document})?