我想要找到所有属于卖家ID的数据,但不包括其他卖家ID。
例如:
例如:
seller_id :1001
,我想要所有属于此卖家ID的数据,包括c_name,_id,c_order
,但不包括seller_id:1000,1002
等。{
"_id" : ObjectId("575e83376a6f714301dd4693"),
"c_name" : "Amit",
"c_order" : [
{
"seller_id" : "1000",
"product_id" : "2000",
"product_name" : "iphone 5s",
"price" : "22000"
},
{
"seller_id" : "1001",
"product_id" : "2001",
"product_name" : "iphone 6s",
"price" : "42000"
},
{
"seller_id" : "1002",
"product_id" : "2003",
"product_name" : "laptop",
"price" : "28000"
}
],
"customer_id" : "21"
},
{
"_id" : ObjectId("575e838f6a6f714301dd4694"),
"c_name" : "Prabal",
"c_order" : [
{
"seller_id" : "1004",
"product_id" : "2004",
"product_name" : "belt",
"price" : "2000"
},
{
"seller_id" : "1001",
"product_id" : "2005",
"product_name" : "coffee mug",
"price" : "400"
},
{
"seller_id" : "1002",
"product_id" : "2006",
"product_name" : "pen drive",
"price" : "800"
}
],
"customer_id" : "22"
},
{
"_id" : ObjectId("575e894c6a6f714301dd4695"),
"c_name" : "Raman",
"c_order" : [
{
"seller_id" : "1001",
"product_id" : "2004",
"product_name" : "belt",
"price" : "2000"
},
{
"seller_id" : "1001",
"product_id" : "2005",
"product_name" : "coffee mug",
"price" : "400"
},
{
"seller_id" : "1002",
"product_id" : "2006",
"product_name" : "pen drive",
"price" : "800"
}
],
"customer_id" : "22"
}