我有一个看起来像这样的数据库:
{
"_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"}
]