私は以下のようなロケーションテーブルを持っています。私はその特定の場所の評価が3以上のドライバーだけの詳細を取得する必要があります。事前にMongoDB - 辞書で辞書の配列を検索するには
おかげで...
[
{
"name":"Delhi",
"cab_details(sub table)":[
{
"driver_details"(join):{
"name":"1111",
"ratings_above_three":true
},
"date_joining": date
},
{
"driver_details":{
"name":"2222",
"ratings_above_three":false
},
"date_joining": date
}
]
}
]
試しましたか?db.collection.find({'cab_details.driver_details.ratings_above_three':true}) – rkatkam