面试题答案
一键面试db.orders.find(
{
"items.product": "Apple",
"items.quantity": { $gt: 3 }
},
{
order_id: 1,
customer: 1,
total_amount: 1,
_id: 0
}
)
db.orders.find(
{
"items.product": "Apple",
"items.quantity": { $gt: 3 }
},
{
order_id: 1,
customer: 1,
total_amount: 1,
_id: 0
}
)