次のようなデータベースがあります。
{
"_id" : ObjectId("50525e55467f67da3f8baf06"),
"client" : "client1"
}
{
"_id" : ObjectId("505262f0deed32a758410b1c"),
"client" : "client2"
}
{
"_id" : ObjectId("5052fe0a37083fd981616589"),
"client" : "client3",
"products" : [
{"name" : "product1"},
{"name" : "product2"}
]
}
client3 レコードを取得せずに client3 の製品リストを取得するにはどうすればよいですか? 出力は次のようになります。
[
{"name" : "product1"},
{"name" : "product2"}
]